One, must rely on four packages, of which three are springboot comes with the package, you can not write the version number, there is a not in the springboot, need to set the version number
1 <!--introduction of the spring boot embedded Tomcat parsing package for JSP -2 <Dependency>3 <groupId>Org.apache.tomcat.embed</groupId>4 <Artifactid>Tomcat-embed-jasper</Artifactid>5 </Dependency>6 7 <!--servlet-dependent jar package start -8 <Dependency>9 <groupId>Javax.servlet</groupId>Ten <Artifactid>Javax.servlet-api</Artifactid> One </Dependency> A - <!--JSP dependent jar package start - - <Dependency> the <groupId>javax.servlet.jsp</groupId> - <Artifactid>Javax.servlet.jsp-api</Artifactid> - <version>2.3.1</version> - </Dependency> + - <!--jstl Tag-dependent jar package start - + <Dependency> A <groupId>Javax.servlet</groupId> at <Artifactid>Jstl</Artifactid> - </Dependency>
View Code
Second, through controller access
Third, view the source code
Https://github.com/liushaoye/sprinboot-yml/tree/master
IntelliJ idea version 2017 spring-boot2.0.4 's integrated JSP