<bean id="freemarkerConfiguration"
class="org.springframework.ui.freemarker.FreeMarkerConfigurationFactoryBean"
p:preferFileSystemAccess="false" p:templateLoaderPath="classpath:/" />
在 Spring 4.2.2 中工作,但当我升级到 4.3.3 时,服务器启动时抛出异常。
Caused by: java.lang.NoSuchMethodError: freemarker.template.Configuration.(Lfreemarker/template/Version;)V
freemarker版本:2.3.20
java版本:1.8.0_60
最佳答案
配置(版本)
已在 FreeMarker 2.3.21 中添加。无论如何,使用最新版本(2.3.25 ATM)是有好处的。
关于java - 从 Spring 4.2.2 升级到 4.3.3 时 freemarker 配置问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40284290/