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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e85124-d26.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e85124-d26.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?