Service类报错that could not be found.

Description:

Field administrativeTableService in com.example.demo.controller.AdministrativeTableController required a bean of type ‘com.example.demo.service.AdministrativeTableService’ that could not be found.

The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)

Action:

Consider defining a bean of type ‘com.example.demo.service.AdministrativeTableService’ in your configuration.

Process finished with exit code 1

报错笔记: lmpl类里面缺少@Service注解

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐