解决spring boot + jar打包部署tomcat 404错误问题

2025-05-26 0 19

1.spring boot 不支持jsp打jar包,jsp只能打war包.
方法:

?

1

2

3

4

5

6

7

8

9

10
<packaging>war</packaging>

<build>

<plugins>

<plugin>

<groupId>org.springframework.boot</groupId>

<artifactId>spring-boot-maven-plugin</artifactId>

</plugin>

</plugins>

</build>

2.tomcat版本不能太新,太新容易不稳定,选用tomcat10时成功404,换成tomcat9就正常了.

部署到tomcat10时一直没出现spring字样

解决spring boot + jar打包部署tomcat 404错误问题

换成tomcat9立即能看到变化

解决spring boot + jar打包部署tomcat 404错误问题

成功部署

解决spring boot + jar打包部署tomcat 404错误问题

到此这篇关于spring boot + jar打包部署tomcat 404错误问题解决的文章就介绍到这了,更多相关spring boot + jar打包部署tomcat内容请搜索快网idc以前的文章或继续浏览下面的相关文章希望大家以后多多支持快网idc!

原文链接:https://blog.csdn.net/qq_43667011/article/details/110353686

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

快网idc优惠网 建站教程 解决spring boot + jar打包部署tomcat 404错误问题 https://www.kuaiidc.com/54564.html

相关文章

发表评论
暂无评论