freemark错误:
freemarker.log._JULLoggerFactory$JULLogger.error DefaultObjectWrapper.incompatibleImprovements was set to the object returned by Configuration.getVersion(). That defeats the purpose of incompatibleImprovements, and makes upgrading FreeMarker a potentially breaking change. Also, this probably won't be allowed starting from 2.4.0. Instead, set incompatibleImprovements to the highest concrete version that's known to be compatible with your application.
产生原因:系统加载freemark版本存在问题
解决方案:
Configuration cfg = new Configuration(Configuration.getVersion());
替换以下写法
Configuration cfg = new Configuration(Configuration.DEFAULT_INCOMPATIBLE_IMPROVEMENTS);
具体参考 :
The "incompatible improvements" setting - Apache FreeMarker Manual
里面全是英文看不懂

以上文章如果出现错误之处,欢迎指正
该博客主要讨论了Freemarker在加载版本时遇到的问题,导致出现`incompatibleImprovements`设置错误。错误信息表明配置的版本不兼容,这可能会破坏FreeMarker的升级。解决方案是将`new Configuration(Configuration.VERSION)`的写法替换为`new Configuration(Configuration.DEFAULT_INCOMPATIBLE_IMPROVEMENTS)`。对于不熟悉英文文档的读者,提供了具体的参考链接以获取更多信息。
3870

被折叠的 条评论
为什么被折叠?



