Bean property 'baseDaomapper' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
第一种情况:可能是mapper映射文件对应的路径写错
第二种情况:autowired和xml文件里面配置有冲突,所以不能两个都配置;
即如果在xml文件里面配置了实体bean,你还再用autowired(自动生成get和set方法),也会出现这样的错误
xml文件里面配置了实体bean必须在实现类里面用set和get方法生成才可以,否则会报错。
(当前的环境是Mybatis3.1.1+Spring 3.2.4 eclipse luna 32位环境)