admin管理员组

文章数量:1566224

Bean named ‘userServiceImpl’ is expected to be of type ‘com.hct.service.impl.UserServiceImpl’ but was actually of type ‘com.sun.proxy.$Proxy29’

原因:service层开启事务后,会用反射去创建对象,因此测试类里面创建service的对象时,类型要用接口类型,不能用实现类的类型。

本文标签: 分布式时报测试mavenService