WARN:Cannot find template location(s): [classpath:/templates/] (please add some templates, check you

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 
就可以解决该警告
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值