Sunday, April 15, 2012

java.lang.IllegalArgumentException - Can not set xxxClass field to $Proxy

解法:

You need to autowire against the interface type

請檢查該class,所引用的 class ( spring bean ),必需 要引用 interface 的class,而非 implement 的 class。

參考來源:http://stackoverflow.com/questions/6976183/proxy25-error-with-spring-service

No comments:

Post a Comment