public interface TUserService {
}
@Service
public class TUserServiceImpl implements TUserService{
}
@Controller
@RequestMapping("/user")
public class UserController {
@Autowired
private TUserServiceImpl tUserServiceImpl;
}
cause by:Bean named 'TUserServiceImpl' is expected to be of type 'org.xtshop.service.impl.TUserServiceImpl' but was actually of type 'com.sun.proxy.$Proxy46'
将controller层改成下来代码:
@Controller
@RequestMapping("/user")
public class UserController {
@Autowired
private TUserService tUserServiceImpl;
}