在UserServiceImpl类上添加注解@Service就可以解决问题, 如下: 问题截图: 问题描述: 问题解决: 在UserServiceImpl类上添加注解@Service,问题便得以解决。 问题解决,正常运行: