org.springframework.beans.NotWritablePropertyException: Invalid property '' of b
org.springframework.beans.NotWritablePropertyException: Invalid property '' of bean class?2009-02-13 15:22
出現異常的原因是在application-xxx.xml中property name的錯誤。
<property name="...."> 中name的名字是與bean的set方法相關的,而且要注意大小寫。
比如
public class PostManageImpl extends BaseManage implements PostManage {
private PostDAO dao = null;
public void setPostDAO(PostDAO postDAO){
this.dao = postDAO;
}
}
那麼xml的定義應該是:
<bean id="postManage" parent="txProxyTemplate">
<property name="target">
<bean class="com.yz.spring.service.implement.PostManageImpl">
<property name="postDAO"><ref bean="postDAO"/></property> 對
<property name="dao"><ref bean="postDAO"/></property> 錯
</bean>
</property>
</bean>
相關文章
- DTS:Property" with error 0x8009000BError
- Property屬性
- Request: credentials property
- Server returns invalid timezone. Need to set ‘serverTimezone‘ property. Idea連線mysql報錯問題ServerIdeaMySql
- iOS面試之@propertyiOS面試
- 類的property特性
- vue-property-decoratorVue
- Objective-C PropertyObject
- [Javascript] Object property orderJavaScriptObject
- Python @property 詳解Python
- Cannot set property 'innerHTML' of nullHTMLNull
- JavaScript invalid 事件JavaScript事件
- iOS 上架報錯 This bundle is invalid 或 Invalid Image PathiOS
- CSS3 transition-propertyCSSS3
- Need to set ‘serverTimezone‘ propertyServer
- Cannot set property ‘type‘ of null(vue)NullVue
- TypeScript Crash Course: Property Access ModifiersTypeScript
- attribute和property區別
- javascript array.property.slice.callJavaScript
- @property中的變數與_變數
- Property 與 Attribute 區別
- [Javascript] How javascript read the property?JavaScript
- Remove Invalid Parentheses[難]REM
- Invalid time zone indicator ‘ ‘Indicator
- Property [title] does not exist on this collection instance
- Vue-Property-Decorator原始碼分析Vue原始碼
- vue-property-decorator使用指南Vue
- Cannot read property ‘aDataSort‘ of undefinedUndefined
- 瞭解下C# 屬性(Property)C#
- property和attribute的區別?
- property的系統實現分析
- Objective c 知識總結 @propertyObject
- Python 中的 property 屬性Python
- attribute和property的區別
- iOS使用Category新增@property變數iOSGo變數
- vue-property-decorator基礎教程Vue
- 裝飾器vue-property-decoratorVue
- css26 CSS Layout - The display PropertyCSS