2021
09-09
09-09
springboot+thymeleaf找不到视图的解决方案
springboot+thymeleaf找不到视图情况:springboot+thymeleaf打成jar包后,报错,但在eclipse本地跑却可以:templatemightnotexistormightnotbeaccessiblebyanyoftheconfiguredTemplateResolversyml配置:spring:thymeleaf:cache:false#开发时关闭缓存,不然没法看到实时页面mode:HTML5#用非严格的HTML#enabled:trueencoding:UTF-8prefix:classpath:/templates/suffix:.html...
继续阅读 >