Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
找不到模板位置:类路径:/templates/(请添加一些模板或检查您的Thymeleaf配置)
1.查看路径下有没有相应的文件
2.在yml中添加配置
spring:
thymeleaf:
check-template: false
check-template-location: false