Service类报错that could not be found.

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注解


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