在我们使用Spring声明式事务管理的途中,有可能会出现以下的异常:
Bean named '' is expected to be of type '' but was actually of type 'com.sun.proxy.$Proxy30'
造成这个错误的原因是注释@Transactional,Spring使一个代理AdminService在Runtime
需要把类似
@Autowired private UserServiceImpl userService;
改为:
@Autowired private UserService userService;
更多推荐
Bean named '' is expected to be of type '' but was actually
发布评论