7 Star 34 Fork 14

hylexus / jt-framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

jt-framework

Jt-808协议服务端。

最新版升级问题,请参考 升级指南--2.0.x升级到2.1.x

最新版升级问题,请参考 升级指南--2.0.x升级到2.1.x

最新版升级问题,请参考 升级指南--2.0.x升级到2.1.x

私有协议编解码小工具推荐「广告」

不依赖具体协议的私有协议编解码小工具。

Compatibility

支持 spring-boot-2.x spring-boot-2.xspring-boot-3.x spring-boot-3.x

更多有关版本兼容性的信息,请移步: 入门--兼容性

更多有关版本兼容性的信息,请移步: 入门--兼容性

更多有关版本兼容性的信息,请移步: 入门--兼容性

starterJDK 版本、spring-boot 版本限制如下:

Module JDK spring-boot Desc
jt-808-server-spring-boot-starter-boot2 11+ [2.2.x, 2.7.x] spring-boot-2.x 提供的 starter
jt-808-server-spring-boot-starter 17+ [3.0.0, ...] spring-boot-3.x 提供的 starter
jt-1078-server-spring-boot-starter-boot2 11+ [2.2.x, 2.7.x] spring-boot-2.x 提供的 starter; beta版
jt-1078-server-spring-boot-starter 17+ [3.0.0, ...] spring-boot-3.x 提供的 starter; beta版
jt-dashboard-client-spring-boot-starter 17+ [3.0.0, ...] 暂时只支持 jdk17+/spring-boot-3.x; beta版
jt-dashboard-server-spring-boot-starter 17+ [3.0.0, ...] 暂时只支持 jdk17+/spring-boot-3.x; beta版

Modules

本项目默认的 JDK版本spring-boot版本 见下表(有必要的话,根据实际情况自行调整):

Module JDK CompileLevel .class spring-boot Desc
jt-core 17 JDK-11 55 (JDK-11) --
jt-808-server-spring-boot-starter 17 JDK-17 61 (JDK-17) 3.1.2
jt-808-server-spring-boot-starter-boot2 17 JDK-11 55 (JDK-11) 2.7.14
jt-808-server-spring-boot-autoconfigure 17 JDK-11 55 (JDK-11) 2.7.14
jt-808-server-support 17 JDK-11 55 (JDK-11) --
jt-1078-server-spring-boot-starter 17 JDK-17 61 (JDK-17) 3.1.2
jt-1078-server-spring-boot-starter-boot2 17 JDK-11 55 (JDK-11) 2.7.14
jt-1078-server-spring-boot-autoconfigure 17 JDK-11 55 (JDK-11) 2.7.14
jt-1078-server-support 17 JDK-11 55 (JDK-11) --
dashboard/** 17 JDK-17 61 (JDK-11) 3.1.2 dashboard 模块暂时只支持 spring-boot-3.x/jdk17
  • 模块介绍
.
├── build-script   # gradle 用到的构建脚本和checkstyle配置
├── docs  # 文档 (vue-press)
├── jt-1078-server-spring-boot-autoconfigure  # (jdk11+)
├── jt-1078-server-spring-boot-starter        # spring-boot-v3 自动配置 (jdk17+)
├── jt-1078-server-spring-boot-starter-boot2  # spring-boot-v2 自动配置 (jdk11+)
├── jt-1078-server-support                    # jt-1078 的实现 (jdk11+)
├── jt-808-server-spring-boot-autoconfigure   # (jdk11+)
├── jt-808-server-spring-boot-starter         # spring-boot-v3 自动配置 (jdk17+)
├── jt-808-server-spring-boot-starter-boot2   # spring-boot-v2 自动配置 (jdk11+)
├── jt-808-server-support                     # jt-808 的实现 (jdk11+)
├── jt-core                                   # 一些公共类 (jdk11+)
├── dashboard # dashboard 模块 「暂时」 不支持 spring-boot-2.x
│     ├── jt-dashboard-client                       # dashboard 客户端 (jdk17+)
│     ├── jt-dashboard-client-spring-boot-starter   # dashboard 客户端的 spring-boot-v3 自动配置 (jdk17+)
│     ├── jt-dashboard-common                       # dashboard 公共依赖 (jdk17+)
│     ├── jt-dashboard-server                       # dashboard 服务端 (jdk17+)
│     ├── jt-dashboard-server-spring-boot-starter   # dashboard 服务端的 spring-boot-v3 自动配置 (jdk17+)
│     └── jt-dashboard-server-ui-vue3               # dashboard 的 UI(基于 VUE3)
├── demos # (jdk17+)
│     ├── jt-demo-1078-server-webflux-boot3
│     ├── jt-demo-808-server-webflux-boot3
│     ├── jt-demo-dashboard-webflux-boot3
│     └── jt-demo-dashboard-webmvc-boot3
└── samples
      ├── jt-1078-server-sample-webflux-boot3 # JT/T 1078 的示例(spring-boot-3.x; Webflux) (jdk17+)
      ├── jt-1078-server-sample-webmvc-boot3  # JT/T 1078 的示例(spring-boot-3.x; SpringMVC) (jdk17+)
      ├── jt-808-server-sample-annotation     # 注解相关的示例(spring-boot-2.x) (jdk11+)
      ├── jt-808-server-sample-bare           # 几乎零配置的示例(spring-boot-2.x) (jdk11+)
      ├── jt-808-server-sample-bare-boot3     # 几乎零配置的示例(spring-boot-3.x) (jdk17+)
      ├── jt-808-server-sample-customized     # 定制化示例(spring-boot-2.x) (jdk11+)
      ├── jt-808-client-sample-debug          # 开发时用来Debug的项目,请忽略
      ├── jt-808-server-sample-debug          # 开发时用来Debug的项目,请忽略
      └── jt-sample-common                    # samples 项目共同的依赖 (jdk11+)

Docs

QuickStart

更多信息,请移步 入门--快速开始

更多信息,请移步 入门--快速开始

更多信息,请移步 入门--快速开始

1. 创建工程

创建一个空的 spring-boot 工程。

2. 添加依赖

关于 starter 项目名称的说明:

  • 2.1.x 开始
    • 1). 分为 spring-boot-2.xspring-boot-3.x 两个版本
    • 2). RELEASE 版本命名不带任何后缀(不再以 -RELEASE 结尾)
    • 3). 低版本中写错的单词 stater 更正为 starter
    • 4). RELEASE 版本命名规则如下所示:
      • spring-boot-3.x
        • jt-808-server-spring-boot-starter-2.1.0.jar
      • spring-boot-2.x
        • jt-808-server-spring-boot-starter-boot2-2.1.0.jar
  • 2.1.x 之前
    • 1). RELEASE 版本命名以 -RELEASE 结尾
    • 2). 模块名中的单词 starter 误写为 stater
    • 3). RELEASE 版本命名规则如下所示:
      • jt-808-server-spring-boot-stater-2.0.3-RELEASE.jar
      • jt-808-server-spring-boot-stater-2.0.1-RELEASE.jar
      • ...
      • jt-808-server-spring-boot-stater-1.0.0-RELEASE.jar

按需求引入为 808协议 提供的 spring-boot-starter

  • gradle
implementation group: 'io.github.hylexus.jt', name: 'jt-808-server-spring-boot-starter-boot2', version: "2.1.4-rc.3"
  • maven

<dependency>
    <groupId>io.github.hylexus.jt</groupId>
    <artifactId>jt-808-server-spring-boot-starter-boot2</artifactId>
    <version>2.1.4-rc.3</version>
</dependency>

3. 配置

  • application.yml
jt808:
  built-components:
    component-statistics:
      enabled: true
    request-handlers:
      enabled: true
logging:
  level.root: info
  level.io.github.hylexus: info
  level.jt-808.request.decoder: debug
  level.jt-808.response.encoder: debug

Features

  • 注解驱动开发
  • 支持苏标附件服务器
  • 支持消息下发
  • 支持消息分包
  • 支持多版本

Maven Samples

Maven版示例项目

Building from Source

更多有关编译源码的信息,请移步 入门--编译源码

更多有关编译源码的信息,请移步 入门--编译源码

更多有关编译源码的信息,请移步 入门--编译源码

  • Mac/Linux/Unix-Based System
./gradlew clean build
  • Windows
.\gradlew.bat clean build

Reporting Issues

  • GitHub 提交 Issue
  • QQ交流群 : 1072477383

Community

QQ交流群

Funding

项目的发展离不开你的支持,请作者喝一杯🍺吧!

有钱的捧个钱场 没钱的捧个人场

空文件

简介

Jt-808协议服务端 展开 收起
取消

发行版 (5)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/hylexus/jt-framework.git
git@gitee.com:hylexus/jt-framework.git
hylexus
jt-framework
jt-framework
master

搜索帮助