Problems encountered in learning springboot + thymeleaf

the project always reports an error when calling the interface: org.thymeleaf.exceptions.TemplateInputException: Error resolving template "/ thymeleaf/user", template might not exist or might not be accessible by any of the configured Template Resolvers

what are the general questions?

Mar.05,2021

for springboot, parsing pages, the default is to look for interface parsing under the templates folder in resources.

and for using thymeleaf template engine, it requires that HTML should be written in strict accordance with HTML format,
such as
single tag must have\

<br\>

path problem, indicating that the template file cannot be accessed


if you are using spring-boot-starter-thymeleaf, you can add the following configurations in application.properties

spring.thymeleaf.check-template-location=true
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
spring.thymeleaf.mode=html
spring.thymeleaf.encoding=UTF-8
spring.thymeleaf.content-type=text/html
spring.thymeleaf.cache=false
Menu