How to Solve DEFAULT_INCOMPATIBLE_IMPROVEMENTS Error (Freemarker + SpringMVC)

The freemarker integration with springMVC reports the following error.
Warning: Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘freemarkerConfig’ defined in class path resource [springmvc.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchFieldError: DEFAULT_INCOMPATIBLE_IMPROVEMENTS
Solution:
replace the original freemarker version with the latest version.
Reference address address.http://stackoverflow.com/questions/40650970/java-lang-nosuchfielderror-default-incompatible-improvements´╝Ť
freemarker Download URL: http://freemarker.org/freemarkerdownload.html

 

Similar Posts: