2012-03-13 8 views
1
を与えている

私のアプリケーションは、次の例外にMYアプリケーションがorg.springframework.beans.factory.BeanCreationException

org.springframework.beans.factory.BeanCreationExceptionを与えていますServletContextリソース[/ WEB-INF /ディスパッチャ - servlet.xml]:プロパティ値の設定エラー。ネストされた例外はorg.springframework.beans.NotWritablePropertyExceptionです:Beanクラス[com.vaannila.web.UserController]のプロパティ 'successVeiw'が無効です: 'successVeiw'プロパティは書き込み可能ではないか、または無効なセッターメソッドを持っています。あなたは 'successView'を意味しましたか?

、これはこれはタイプミスです

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

答えて

5

私のディスパッチャ-servlet.xmlファイルです。例外が間違っているかを表示します:

無効なプロパティ 'successVeiw'

あなたは

p:successView 

ない

p:successVeiw 
をしたいです
関連する問題