Exception screenshot:
It can be roughly seen from the exception information: We originally wanted him to find GmsChannelService, but when it started, we found two, one is GmsChannelService and the other is GmsChannelServiceImpl:
Let's look at the controller layer again:
we use the @Autowired annotation here, and want to get the service through automatic boxing
Let's look at the serviceImpl layer again:
Solution:
Controller layer: add @Qualifier
serviceImp layer
@Service -->@Service(GmsChannelService)
Is the soup fragrant? ?