-
Notifications
You must be signed in to change notification settings - Fork 478
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
Springboot3 + Java17 打包后运行报错 #124
Comments
|
@powerttt 我这边也是springboot3 + java17,启动后报无法加载主类,加密前的包能正常启动 |
从源码看到,这是由于springboot3的启动类是org.springframework.boot.loader.launch.JarLauncher,springboot2的启动类是org.springframework.boot.loader.JarLauncher,而作者没有兼容springboot3导致 |
看老大一直不解决。 |
打包正常结束,加密包正常生成,可是运行的时候包如下错(这个是不是因为JDK版本过高的问题):
该问题怎么解决?
我是通过Maven插件形式生成的加密jar包(也式main方法形式)都是包这个错。
Note:我在运行命令也加上 了
--add-opens java.base/jdk.internal.loader=ALL-UNNAMED
还是没有解决问题一样报错。这个库能不能升级一下,我看了代码已经是好几年前的了,太老了。The text was updated successfully, but these errors were encountered: