springBoot整合jsp

所需依赖jar包

        <dependency>
        <groupId>org.apache.tomcat.embed</groupId>
        <artifactId>tomcat-embed-jasper</artifactId> <!--<scope>provided</scope> 注意,这个scope需要被注释掉-->
    </dependency> <!-- jsp标签库 -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>jstl</artifactId>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <scope>provided</scope>
        </dependency>

 主配置文件

spring.mvc.view.prefix=/WEB-INF/system/
spring.mvc.view.suffix=.jsp

 新建jsp

resources同级目录创建webapp-->WEB-INF

 

posted @ 2018-11-10 13:16  孤独的拾荒者  阅读(246)  评论(0编辑  收藏  举报