There is a bug in the spring boot packaging plug-in, which makes it impossible to access the JSP page after packaging the executable JAR package. Currently, only 1.4.2 can be packaged normally. If it cannot be accessed after it is published as an executable jar package, first confirm the version of the packaging plug-in.
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<!--版本--><version>1.4.2.RELEASE</version>
</plugin>
Reference: https://blog.csdn.net/chichuhanga/article/details/78716027