SpringBoot使用JSP

1.导入依赖

  <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat.embed</groupId>
            <artifactId>tomcat-embed-jasper</artifactId>
        </dependency>

2.resources/application.yml

 

3.jap/index.jsp

4.conreoller

5.StarBootJSP启动类

 

 

 

 

posted @ 2019-12-12 16:53  林染plus  阅读(193)  评论(0编辑  收藏  举报