问题:
A component required a bean of type ‘com.hao.mall.service.UserService‘ that could not be found.
原因:
在UserServiceImpl没有加@Service
注解
解决办法:
在UserServiceImpl在加入@Service
注解
@Service
public class UserServiceImpl implements UserService {
}
问题:
A component required a bean of type ‘com.hao.mall.service.UserService‘ that could not be found.
原因:
在UserServiceImpl没有加@Service
注解
解决办法:
在UserServiceImpl在加入@Service
注解
@Service
public class UserServiceImpl implements UserService {
}