Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 适配 springboot3 jdk17 #3467

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ynx-official
Copy link

1.更新过时项目配置
management.server.servlet.context-path -> management.server.base-path
spring.resources.static-locations -> spring.web.resources.static-locations

2.更新依赖版本

spring 5.3.34 -> 6.1.8
spring-boot 2.7.18 -> 3.2.6
mybatis-spring-boot-starter 2.3.2 -> 3.0.3

3.移除依赖
javax.annotation-api

4.新增依赖
jakarta.annotation-api

5.新增打包插件 (适配 方法参数的名称没有被正确解析的问题)
maven-compiler-plugin

6.修改报路径问题
部分包名 从javax 变更为 jakarta

@zhipingwu
Copy link

大佬,请教一下,jdk17 兼容 jdk8 吗

@ynx-official
Copy link
Author

大佬,请教一下,jdk17 兼容 jdk8 吗

jdk8 直接用当前项目的master分支即可

@PICNO
Copy link

PICNO commented Jul 3, 2024

请问你一下要适配jdk 17 是拉哪个分支

@ynx-official
Copy link
Author

请问你一下要适配jdk 17 是拉哪个分支
使用这个分支即可 https://github.com/ynx-official/xxl-job/tree/upgrade_jdk17

@leyou240
Copy link

leyou240 commented Aug 2, 2024

请问你一下要适配jdk 17 是拉哪个分支
使用这个分支即可 https://github.com/ynx-official/xxl-job/tree/upgrade_jdk17

jdk21也支持吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants