spring Bean property 'backupService' is not writable or has an invalid setter method
解决一下异常情况:
Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'backupService' of bean class [jp.pioneer.ncs.ssv.tasklet.imagebackupbatch.ImageBackupTasklet]: Bean property 'backupService' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
这个异常说明 backupService 对象没有提供 相应的get set 方法 要加上:
public void setbackupService( BackupService backupService ) {
this.backupService = backupService;
}
来源://作者:/更新时间:2012-12-19
顶
踩
相关文章:
- springmvc form表单提交后台对象获取不到值(解决)
- springmvc form提交使用@ModelAttribute后台取得乱码
- (解决) springmvc jsp界面显示乱码 spring+mybatis+my
- org.apache.ibatis.builder.BuilderException: Error
- java.util.concurrent.ExecutionException: Failed to
- spring jar framework 下载地址(解决)
- HttpHostConnectException: Connection to http://jsj
- Field or property 'jobParameters' cannot be found
- MINA2官方教程翻译(10)与Spring整合
- spring +mybatis 出现The content of elements must c