情况是这样的 :loginAction中需要用到两个业务类 UserManager TmsManager
设为私有属性后 提供set get方法 并且都在spring 配置文件中配置好了 但是调用loginAction时出现下列异常:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginAction' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: [color=darkred]Failed to convert property value of type [$Proxy0] to required type [com.lmz.tms.manager.UserManager] for property 'userManager'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy0] to required type [/color][com.lmz.tms.manager.UserManager] for property 'userManager': no matching editors or conversion strategy found
这是 spring部分配置: