Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 我的应用程序正在给org.springframework.beans.factory.BeanCreationException_Java_Spring Mvc - Fatal编程技术网

Java 我的应用程序正在给org.springframework.beans.factory.BeanCreationException

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

我的申请有以下例外

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文件

 <?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
不是