小问题却难以发现。通常出现这种错误都是因为service层的impl.java接口类没有继承Service.java

Consider defining a bean of type 'com.miaoshaproject.service.ItemService' in your configuration.问题解决

ItemServiceImpl.java文件中添加   implements ItemService

--------------------------------------------------------------------------

 

@Service
public class ItemServiceImpl implements ItemService {
    ..........................
}

 

-----------------------------------------------------------------------
 

相关文章:

  • 2021-10-09
  • 2022-12-23
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
猜你喜欢
  • 2021-08-20
  • 2021-11-25
  • 2021-11-25
  • 2021-04-24
  • 2021-07-07
  • 2021-08-31
  • 2021-08-31
相关资源
相似解决方案