spring集成velocity问题
北神 2015-08-03 10:47:28 spring配置文件出现错误:
<bean id="velocityConfig"
class="org.springframework.web.servlet.view.velocity.VelocityConfigurer">
<property name="resourceLoaderPath" value="/WEB-INF/views/" />
<property name="velocityProperties">
<props>
<!-- 省略 -->
</props>
</property>
</bean>
<bean id="viewResolver"
class="org.springframework.web.servlet.view.velocity.VelocityViewResolver">
<property name="suffix" value=".vm" />
</bean>
eclipse提示:
No setter found for property 'resourceLoaderPath' in class 'org.springframework.web.servlet.view.velocity.VelocityConfigurer'
No setter found for property 'velocityProperties' in class 'org.springframework.web.servlet.view.velocity.VelocityConfigurer'
按alt+/ 提示只有servletContext和velocityEngine两个属性;
环境:spring4.1.7,velocity1.7
查了spring官网文档,没找到解决办法。求助!!!