spring.resources.static-location parameter specifies the Spring Boot-web project files stored in a static address,
The default parameter settings are:
classpath:/static,
classpath:/public,
classpath:/resources,
classpath:/META-INF/resources,
servlet context: / need to specify a custom directory
例如:spring.resources.static-locations=
classpath:templates/ resources
Remove the suffix in the html directory of resources under the directory
spring.mvc.view.prefix=/html
.Html suffix
spring.mvc.view.suffix=.html