public interface TUserMapper extends BaseMapper<TUser> {
}
public interface TUserService extends IService<TUser> {
}
@Service
public class TUserServiceImpl extends ServiceImpl<TUserMapper, TUser> implements TUserService {
}
@RestController
public class TUserController {
@Autowired
private TUserServiceImpl userService;
}
我在Controller层里自动装配了serviceImpl实现类,启动就报错,跪qiu各位帮我解惑一下是什么原因
The bean 'TUserServiceImpl' could not be injected as a 'com.blog.service.impl.TUserServiceImpl' because it is a JDK dynamic proxy that implements:
com.blog.service.TUserService