202011-29 spring boot加载freemarker模板路径的方法 1,之前用的eclipse开发工具来加载springboot加载freemarker模板路径,现在换用idea却不能使用了,所以来记录一下加载freemarker模板三种方式,如下publicvoidsetClassForTemplateLoading(Classclazz,StringpathPrefix);publicvoidsetDirectoryForTemplateLoading(Filedir)throwsIOException;publicvoidsetServletContextForTemplateLoading(ObjectservletContext,Stringpath);看名字也就知道了,分别基于类路径、... 继续阅读 >