Resolving error template template may not exist or may not be accessible
-
- there may be a problem with your controller annotation
-
- the difference between controller annotation and restcontroller annotation. Thymeleaf configures the corresponding path in the properties or YML configuration file
-
- about
-
- properties spring.web.resources.static-locations=classpath:/static/, classpath:/templates/ yml
-
spring:
thymeleaf:
# thymeleaf The directory where the page is stored
prefix: classpath:/templates/
Return path problem
there is no Maven clear in the return path