文章詳情頁
解決spring boot + jar打包部署tomcat 404錯誤問題
瀏覽:70日期:2023-03-19 16:51:29
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版本不能太新,太新容易不穩(wěn)定,選用tomcat10時成功404,換成tomcat9就正常了.
部署到tomcat10時一直沒出現spring字樣
換成tomcat9立即能看到變化
成功部署
到此這篇關于spring boot + jar打包部署tomcat 404錯誤問題解決的文章就介紹到這了,更多相關spring boot + jar打包部署tomcat內容請搜索以前的文章或繼續(xù)瀏覽下面的相關文章希望大家以后多多支持!
標簽:
Tomcat
相關文章:
排行榜
