报错如下:
TemplateInputException: Error resolving template [search], template might not exist or might not be accessible by any of the configured Template Resolvers
检查了resource目录下有此文件,
检查使用controller注解 和 没用responseBody注解
路径使用的是默认的,只设置了不用thymeleaf缓存:
确认访问方式没错,就是无法解析路径下的页面
问题解决:
默认的路径也写上去就好了,不知道原因,找了很久。
thymeleaf启动器版本:2.3.7release(同springBoot版本)
JDK版本:1.8