集成测试失败 - Grails自动装配问题
无论出于何种原因,当我尝试运行任何集成测试时,我得到以下内容:
Initialization of bean failed; nested exception is
org.springframework.beans.ConversionNotSupportedException: Failed to convert property
value of type
'myproject.provider.shipping.variable.ConcreteImplService$$EnhancerByCGLIB$$f28ea3b8' to
required type 'ammoscanner.provider.shipping.variable.ConcreteImplService' for property
'concreteImplService'; nested exception is java.lang.IllegalStateException: Cannot
convert value of type
为什么CGLib包装我注入的类并导致测试失败?我正在运行grails 1.3.6并通过Intelli-J ultimate 10.01运行测试。
没有找到相关结果
已邀请:
1 个回复
屠创氓读叔