欢迎来到我的博客

springboot(eureka子项目)+idea+jsp 404问题

我是这么解决的

对于单一项目,加入以下jar包即可

 1 <!--前台页面的支持-->
 2         <dependency>
 3             <groupId>javax.servlet</groupId>
 4             <artifactId>javax.servlet-api</artifactId>
 5         </dependency>
6 <dependency> 7 <groupId>javax.servlet</groupId> 8 <artifactId>jstl</artifactId> 9 </dependency>
10 <dependency> 11 <groupId>org.apache.tomcat.embed</groupId> 12 <artifactId>tomcat-embed-jasper</artifactId> 13 </dependency>
14 <dependency> 15 <groupId>org.apache.tomcat</groupId> 16 <artifactId>tomcat-jsp-api</artifactId> 17 </dependency>

对于多模块的项目,上面这种方法就不能解决了。多模块解决方法如下:

如此便可解决!如果有更好的方法请留言,共同学习,分享!  

posted @ 2018-12-03 20:30  八千轮回  阅读(336)  评论(0编辑  收藏  举报
人生三从境界:昨夜西风凋碧树,独上高楼,望尽天涯路。 衣带渐宽终不悔,为伊消得人憔悴。 众里寻他千百度,蓦然回首,那人却在灯火阑珊处。