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
相关文章
评论:
验证码:
匿名评论:

最新文章

文章排行