0
無論出於何種原因,當我嘗試運行任何集成測試,我發現了以下內容:集成測試失敗 - 自動裝配問題使用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終極版10.01運行測試。
在run-app或war中運行相同的代碼時它工作嗎?另外,你在你的應用中使用哪些插件? – 2011-02-02 05:24:03
也嘗試從命令行運行以消除IntelliJ作爲變量。 – 2011-02-02 05:24:47