##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
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.