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

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

比如xxx.xxx.UserService

应该为xxx.xxx.IUserService

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

原文地址:https://www.cnblogs.com/javaleon/p/4000729.html