##Springboot+thymeleaf 整合问题 ##接口
@Controller
public class HelloController {
@Autowired
private ApiLogService apiLogService;
@RequestMapping("/getLog")
public String getLog(Model model) {
model.addAttribute("apiLogList",apiLogService.getList());
return "list";
}
}
##页面错误信息
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Mar 19 17:31:23 CST 2019
There was an unexpected error (type=Internal Server Error, status=500).
Error resolving template [getLog], template might not exist or might not be accessible by any of the configured
Template Resolvers
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [getLog], template might not exist
or might not be accessible by any of the configured Template Resolvers at。。。
##后台错误信息
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [getLog], template might not exist
or might not be accessible by any of the configured Template Resolvers
##页面目录
templates/list.html
##配置信息(仅此一个关于 thymeleaf 的配置)
spring.thymeleaf.cache=false