Add four coordinates
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<!--<scope>provided</scope>-->
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
Directory Structure
application.properties view resolver configuration
Write controller provides a jump
Set working directory to $ MODULE_DIR $, you can choose the right side of the drop-down option
Without this option, select this item
Successful operation
Reference https://blog.csdn.net/chuan8898439/article/details/82958903