关注JEECG发展历程 关注最新动态和版本, 记录JEECG成长点滴 更新日志 - 技术支持 - 招聘英才

JEECG最新版本下载 JEECG智能开发平台 - 显著提高开发效率 常见问题 - 入门视频 - 参与开源团队

商务QQ: 69893005、3102411850 商务热线(5*8小时): 010-64808099 官方邮箱: jeecgos@163.com

查看: 9727|回复: 0

[代码生成器] 求助!项目启动时报freemarker Bean初始化失败?

[复制链接]
发表于 2015-6-10 18:44:58 | 显示全部楼层 |阅读模式
版本:3.5.2

在配置文件中:
spring-mvc-cgform.xml
如下配置:
<bean id="freemarker" class="freemarker.template.Configuration">
   <property name="templateLoader" ref="templetLoader" />
   <property name="defaultEncoding" value="UTF-8"></property>
   <property name="numberFormat" value="0"></property>
</bean>

报错原因为:templateLoader无法初始化,
错误日志:
[org.springframework.web.context.ContextLoader]Context initialization failed
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:/work_koala/jeecg/target/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

但是我在所有配置文件中都没有找到templetLoader这个的配置?  请问一下这个配置在哪里呢?

是我的环境问题吗? 为何我的启动报这个错?谢谢!


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表