我的应用程序正在提供org.springframework.beans.factory.BeanCreationException

时间:2012-03-13 10:39:47

标签: java spring-mvc

MY Application提供以下例外

  

org.springframework.beans.factory.BeanCreationException:在ServletContext资源[/ WEB-INF / dispatcher- servlet.xml]中定义名为'/userRegistration.htm'的bean时出错:设置属性值时出错;嵌套异常是org.springframework.beans.NotWritablePropertyException:bean类的无效属性'successVeiw'[com.vaannila.web.UserController]:Bean属性'successVeiw'不可写或具有无效的setter方法。你的意思是'successView'吗?

这是我的dispatcher-servlet.xml文件

 <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="http://www.springframework.org/schema/beans                    http://www.springframework.org/schema/beans/spring-beans.xsd">

   <bean id="viewResolver"

   class="org.springframework.web.servlet.view.InternalResourceViewResolver"

    p:prefix="/WEB-INF/JSPs/" p:suffix=".jsp" />

   <bean id="userService" class="com.vaannila.service.UserServiceImpl"/>

   <bean name="/userRegistration.htm" class="com.vaannila.web.UserController"
    p:userService-ref="userService"
    p:formView="userForm"
    p:successVeiw="userSuccess"/>
   </beans>

0 个答案:

没有答案