标签:master github control hub jsp 访问 closed apache hid
一、必须依赖四个包,其中三个是springboot自带包,可以不写版本号,有一个不在springboot中,需要设置版本号
1 <!--引入Spring Boot内嵌的Tomcat对Jsp的解析包--> 2 <dependency> 3 <groupId>org.apache.tomcat.embed</groupId> 4 <artifactId>tomcat-embed-jasper</artifactId> 5 </dependency> 6 7 <!--servlet依赖的jar包start--> 8 <dependency> 9 <groupId>javax.servlet</groupId> 10 <artifactId>javax.servlet-api</artifactId> 11 </dependency> 12 13 <!--jsp依赖jar包start--> 14 <dependency> 15 <groupId>javax.servlet.jsp</groupId> 16 <artifactId>javax.servlet.jsp-api</artifactId> 17 <version>2.3.1</version> 18 </dependency> 19 20 <!--jstl标签依赖的jar包start--> 21 <dependency> 22 <groupId>javax.servlet</groupId> 23 <artifactId>jstl</artifactId> 24 </dependency>
二、通过Controller访问
三、查看源码
https://github.com/liushaoye/sprinboot-yml/tree/master
IntelliJ IDEA 2017版 spring-boot2.0.4的集成JSP
标签:master github control hub jsp 访问 closed apache hid
原文地址:https://www.cnblogs.com/liuyangfirst/p/9276230.html