记一次springboot注解报错情况。
使用的是duboo框架,在引入的所有包都是正确的情况下
使用@Autowire报错,提示Could not autowire. No beans…
原因是:在写service的实现类的时候忘记加@Service("")注解导致
springboot注解报错Could not autowire. No beans.
最新推荐文章于 2023-10-16 17:54:49 发布
记一次springboot注解报错情况。
使用的是duboo框架,在引入的所有包都是正确的情况下
使用@Autowire报错,提示Could not autowire. No beans…
原因是:在写service的实现类的时候忘记加@Service("")注解导致