无论出于何种原因,当我尝试运行任何集成测试时,我得到以下内容:
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运行测试。
答案 0 :(得分:0)
我重建并重新启动了IntelliJ,一切都很顺利。