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>
相關文章
- Server returns invalid timezone. Need to set ‘serverTimezone‘ property. Idea連線mysql報錯問題ServerIdeaMySql
- @property @synthesize @dynamic
- Property屬性
- Request: credentials property
- JavaScript invalid 事件JavaScript事件
- found an invalid color
- vue-property-decoratorVue
- 類的property特性
- Python @property 詳解Python
- [Javascript] Object property orderJavaScriptObject
- Need to set ‘serverTimezone‘ propertyServer
- StreamCorruptedException: invalid stream headerExceptionHeader
- Invalid time zone indicator ‘ ‘Indicator
- Cannot set property 'innerHTML' of nullHTMLNull
- iOS面試之@propertyiOS面試
- zend_std_read_property
- 1114 Family Property (25分)
- Cannot read property ‘aDataSort‘ of undefinedUndefined
- [Javascript] How javascript read the property?JavaScript
- python: invalid value encountered in divide以及invalid value encountered in double_scalars報錯PythonIDE
- OSError: [Errno 22] Invalid argumentError
- CSS3 transition-propertyCSSS3
- Cannot set property ‘type‘ of null(vue)NullVue
- property和attribute的區別?
- Property [title] does not exist on this collection instance
- TypeScript Crash Course: Property Access ModifiersTypeScript
- 摘:裝飾器@property @setter
- SQLLoader ORA-01722 invalid numberSQL
- The Mac is invalid. 為什麼?Mac
- 重編譯 invalid 物件(轉)編譯物件
- ORA-00130: invalid listener address
- mybatis竟然報"Invalid value for getInt()"MyBatis
- 理解 Kotlin 中的屬性(property)Kotlin
- vue-property-decorator使用指南Vue
- 裝飾器vue-property-decoratorVue
- vue-property-decorator基礎教程Vue
- Vue-Property-Decorator原始碼分析Vue原始碼
- Property "visible" must be accessed with "$data.visible"
- Spring之Property檔案讀取Spring