A component required a bean of type ‘XXXService’ that could not be found
组件需要找不到“Service”类型的bean
因为service的实现类serviceimpl忘记了加@Service注解。
本文介绍了一种常见的情况:Spring应用中由于忘记在Service实现类上添加@Service注解而导致所需的Service类型Bean无法被找到的问题,并给出了相应的解决方案。
A component required a bean of type ‘XXXService’ that could not be found
组件需要找不到“Service”类型的bean
因为service的实现类serviceimpl忘记了加@Service注解。
3万+
2882
9万+