WARN:Cannot find template location(s): [classpath:/templates/] (please add some templates, check your FreeMarker configuration, or set spring.freemarker.checkTemplateLocation=false)
找不到模板位置(s):[类路径:/模板/](请添加一些模板,检查你的FreeMarker配置,或一组spring.freemarker.checkTemplateLocation = false)
这个警告你可以选择忽略,不会影响编译,实在看不过去或者不想看到警告内容可以按下面操作。
解决方法:
在application.propertoes或yml配置文件中添加,
spring.freemarker.checkTemplateLocation=false
或
spring:
freemarker:
checkTemplateLocation: false