求助!项目启动时报freemarker Bean初始化失败?
版本: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无法初始化,
错误日志:
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 : Initialization of bean failed; nested exception is org.springframework.beans.FatalBeanException: Failed to obtain BeanInfo for class ; nested exception is java.beans.IntrospectionException: type mismatch between read and write methods
但是我在所有配置文件中都没有找到templetLoader这个的配置?请问一下这个配置在哪里呢?
是我的环境问题吗? 为何我的启动报这个错?谢谢!
页:
[1]