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

<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,spring,boot,,jar打包部署,spring,boot,部署tomcat

免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
白云城资源网 Copyright www.dyhadc.com