基于Spring-Boot的JT-808协议服务端
Jt-808协议服务端。
创建一个空的
spring-boot工程。
引入为
808协议提供的
spring-boot-starter
dependencies { // ... implementation group: 'io.github.hylexus.jt', name: 'jt-808-server-spring-boot-stater', version: "1.0.10-RELEASE" // ... }
io.github.hylexus.jt jt-808-server-spring-boot-stater 1.0.10-RELEASE
jt808: print-component-statistics: true logging: level: info level.io.github.hylexus: debug
@EnableJt808ServerAutoConfig启用自动配置
@SpringBootApplication // 启用自动配置 @EnableJt808ServerAutoConfig public class Jt808ServerSampleBareApplication {public static void main(String[] args) { SpringApplication.run(Jt808ServerSampleBareApplication.class, args); }
}
MsgDispatcher
MsgQueue,内置基于
Google-EventBus的 MsgQueue
MsgQueueListener,内置基于
Google-EventBus的 MsgQueueListener
HandlerMethodArgumentResolver
请事先安装
Lombok插件。
shell script ./gradlew clean build
shell script ./gradlew.bat clean build
. ├── build-script # gradle用到的构建脚本和checkstyle配置 ├── docs # 文档 (vue-press) ├── gradle ├── jt-808-server-spring-boot-stater ├── jt-808-server-support ├── jt-core ├── jt-spring └── samples # 示例项目 ├── jt-808-server-sample-bare # 几乎零配置的示例 ├── jt-808-server-sample-annotation # 注解相关的示例 └── jt-808-server-sample-customized # 定制化示例