报错 : Field sysLogService in com.tedu.controller.SysLogController required a bean of type 'com.tedu.service.SysLogService' that could not be found

Error message:

***************************
APPLICATION FAILED TO START
***************************

Description:

Field sysLogService in com.tedu.controller.SysLogController required a bean of type 'com.tedu.service.SysLogService' 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.tedu.service.SysLogService' in your configuration.

 

Baidu a moment, someone else's solution is as follows:

Add @service annotation Service implementation class, but I have added or not, 

Guess you like

Origin www.cnblogs.com/liangmujun/p/12064688.html