升级tomcat9.x的应用至tomcat10.x

下载:https://tomcat.apache.org/download-migration.cgi  目前最新版本 https://dlcdn.apache.org/tomcat/jakartaee-migration/v1.0.7/binaries/jakartaee-migration-1.0.7-shaded.jar

 

然后对war包进行重新编译,命令为:
java -jar jakartaee-migration-x.x.x-SNAPSHOT-shaded.jar <source> <destination>
其中<source> 填需要迁移的war包的路径,<destination>填生成新war包的路径
如下所示

  以上即为在tomcat10以上的war包程序适配tomcat10以后版本的解决方案。
将新包替换至现场后解决问题。

posted @ 2023-07-07 11:41  锐洋智能  阅读(225)  评论(0编辑  收藏  举报