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
里面全是英文看不懂
以上文章如果出现错误之处,欢迎指正