转自:http://ekisstherain.iteye.com/blog/1569236
错误信息:
org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'aisleService' must be of type [XXX], but was actually of type [$Proxy38]
这个问题出现的原因:一般在使用annotation的方式注入spring的bean 出现的,具体是由于spring采用代理的机制导致的,看使用的代码:
就是记录一下,自己备查。