Freemarker与Java 8的问题

我最近将我的项目更新为Java 8,在尝试让我的项目再次工作时我遇到了一些问题.现在,问题看起来像Java 8 Introspection API与我的freemarker配置有冲突,每次我尝试运行服务器时都会收到此错误.

Failed to obtain BeanInfo for class [freemarker.template.Configuration]; nested exception is java.beans.IntrospectionException: type mismatch between read and write methods

我的freemarker版本是

    

我的Spring版本是3.2.5,我没有升级到版本4.x,在那里我读到了类似的问题.
有什么建议吗?

这里是stactrace

java.beans.IntrospectionException: type mismatch between read and write methods
at org.springframework.beans.PropertyDescriptorUtils.findPropertyType(ExtendedBeanInfo.java:512)
at org.springframework.beans.SimplePropertyDescriptor.

此票也与https://jira.spring.io/browse/SPR-12448相关
但就像我说的那样,Spring 4.2的更新现在不是一个选择.

问候.

最佳答案
我想你正在将freemarker.template.Configuration添加到你的应用程序上下文中.也许你可以将它包装在另一个类中,因此在应用程序上下文中没有freemarker.template.Configuration的实例.那样Spring就不需要反省它了.

相关文章

这篇文章主要介绍了spring的事务传播属性REQUIRED_NESTED的原...
今天小编给大家分享的是一文解析spring中事务的传播机制,相...
这篇文章主要介绍了SpringCloudAlibaba和SpringCloud有什么区...
本篇文章和大家了解一下SpringCloud整合XXL-Job的几个步骤。...
本篇文章和大家了解一下Spring延迟初始化会遇到什么问题。有...
这篇文章主要介绍了怎么使用Spring提供的不同缓存注解实现缓...