springboot+idea+jsp 404问题

版权声明:本文为博主原创文章,未经博主允许不得转载! https://blog.csdn.net/qq_39539575/article/details/83475911

我是这么解决的

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

        <!--前台页面的支持-->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>tomcat-embed-jasper</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat</groupId>
            <artifactId>tomcat-jsp-api</artifactId>
        </dependency>

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

 

 

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

猜你喜欢

转载自blog.csdn.net/qq_39539575/article/details/83475911