1
我的申請被賦予以下異常我的應用程序是給org.springframework.beans.factory.BeanCreationException
org.springframework.beans.factory.BeanCreationException:錯誤創建名稱爲豆「/userRegistration.htm」定義在ServletContext資源中[/ WEB-INF/dispatcher-servlet.xml]:設置屬性值時出錯;嵌套異常是org.springframework.beans.NotWritablePropertyException:bean類[com.vaannila.web.UserController]的無效屬性'successVeiw':Bean屬性'successVeiw'不可寫或具有無效的setter方法。你的意思是'successView'?
,這是我的調度員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>