org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'templetContext': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'freemarker' defined in URL [file:/E:/From_Develop/apache-tomcat-7.0.47/webapps/jeecg/WEB-INF/classes/org/jeecgframework/web/cgform/common/spring-mvc-cgform.xml]: Initialization of bean failed; nested exception is org.springframework.beans.FatalBeanException: Failed to obtain BeanInfo for class [freemarker.template.Configuration]; nested exception is java.beans.IntrospectionException: type mismatch between read and write methods
可以支持JDK1.8,但是需要更新一下pom.xml 中的spring版本:<spring.version>3.2.9.RELEASE</spring.version>
产生这个问题的根源应该是spring在JDK1.8的问题,官方已经有修复版本,具体可以看spring的更新历史;老项项目维护还需要用旧的。
解决方案:
tomcat, JDK 1.8 版本过高, 换成JDK 1.6 搞定
不行就多调试项目jdk版本