项目使用springboot+freemarker
在访问每个页面时候,都会报错:
ResourceManager : unable to find resource 'product/product_detail.vm' in any resource loader.
但对功能没有影响,
需要
stackoverflow给出了一个解决方案:
----------------------------------------------
Setting this in the configuration class will help: @EnableAutoConfiguration(exclude = { DataSourceAutoConfiguration.class,VelocityAutoConfiguration.class })
----------------------------------------------
即我们需要在springboot的启动文件中加入以上注解,即可解决问题。
参考链接:
http://stackoverflow.com/questions/31812481/spring-thymeleaf-resourcemanager-unable-to-find-resource-index-vm-in-any