Java 我的应用程序正在给org.springframework.beans.factory.BeanCreationException
我的申请有以下例外 org.springframework.beans.factory.BeanCreationException:使用ServletContext资源[/WEB-INF/dispatcher-servlet.xml]中定义的名称“/userRegistration.htm”创建bean时出错:设置属性值时出错;嵌套异常为org.springframework.beans.NotWritablePropertyException:bean类[com.vaannila.web.UserController]的无效属性“successVeiw]:bean属性“successVeiw”不可写或具有无效的setter方法。你是说“successView”吗 这是我的dispatcher-servlet.xml文件Java 我的应用程序正在给org.springframework.beans.factory.BeanCreationException,java,spring-mvc,Java,Spring Mvc,我的申请有以下例外 org.springframework.beans.factory.BeanCreationException:使用ServletContext资源[/WEB-INF/dispatcher-servlet.xml]中定义的名称“/userRegistration.htm”创建bean时出错:设置属性值时出错;嵌套异常为org.springframework.beans.NotWritablePropertyException:bean类[com.vaannila.web.Us
<?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>
这是个打字错误。异常会告诉您出了什么问题: 无效属性“SuccessVew” 你想要
p:successView
不是
这是个打字错误。异常会告诉您出了什么问题: 无效属性“SuccessVew” 你想要
p:successView
不是