<bean class="org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer"> <property name="templateLoaderpaths" value="/WebContent/jsp/"></property> <property name="defaultEncoding" value="utf-8"></property> <property name="freemarkerSettings"> <props> <prop key="locale">zh_CN</prop> </props> </property></bean><bean class="org.springframework.web.servlet.view.freemarker.FreeMarkerViewResolver"> <property name="suffix" value=".*"></property> <property name="contentType" value="text/html;charset=utf-8"></property> <property name="requestContextAttributes" value="request" /> <property name="exposeRequestAttributes" value="true" /> <property name="exposeSessionAttributes" value="true" /> </bean>org.springframework.beans.NotWritablePropertyException: Invalid property 'templateLoaderpaths' of bean class [org.springframework.web.servlet.view.freemarker.FreeMarkerConfigurer]: Bean property 'templateLoaderpaths' is not writable or has an invalid setter method. Did you mean 'templateLoaderPath', or 'templateLoaderPaths'?at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1064)at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:924)at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:76)at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1393)... 31 more
添加回答
举报
0/150
提交
取消