but was actually of type [com.sun.proxy.$Proxy33]

使用接口注入,不能直接注入实现类型

比如xxx.xxx.UserService

应该为xxx.xxx.IUserService

否则就会报but was actually of type [com.sun.proxy.$Proxy33]之类的错误

posted @ 2014-09-29 17:45  LeonGo  阅读(2868)  评论(1编辑  收藏  举报