异常:org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor

************************************************************************************************************************************************

 autowire异常主要由三个情况发生的

上面的情况是BrandDao没有注入,


1。你的BrandServiceImpl必须以@Service或@Component注解才行。


2。自动写入的时候把接口写成实现类了
@Autowired
private BrandServiceImpl      brandServiceImpl;
应该是
@Autowired
private BrandService    brandService ;

3.在BrandDao 类上加上@Repository注解



版权声明:本文为qq_25428769原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。