在初次使用spring-boot+freemarker开发时,出现了问题:
例如1、
Error resolving template "freemarker/demo", template might not exist or might not be accessible by any of the configured Template Resolvers
和
重建maven时一些jar包文件无法进行读取,
等类型的错误
问题原因在于
一些jar包下载的不全,而造成的无法读取和解读,
解决:
1、看maven的配置文件的仓库地址,若需要请修改
2、报错误的jar包,打开时可以看到,提示jar异常,此时,我们需要删除此包,然后mvn compile,最后大致问题应该可以解决的
还有一个问题时,controller解读返回一个页面时显示错误
Error resolving template "center", template might not exist or might not be accessible by any of the configured Template Resolvers
代码反复检查没有问题,经过重新构建maven后,此问题也得以解决