关于spring boot自动注入出现Consider defining a bean of type 'xxx' in your configuration问题解决方案

Description:

Field realNameService in com.stylefeng.guns.modular.certification.controller.RealNameController required a bean of type 'com.stylefeng.guns.modular.certification.service.IRealNameService' that could not be found.


Action:

Consider defining a bean of type 'com.stylefeng.guns.modular.certification.service.IRealNameService' in your configuration.

 

解决方法:

找到com.stylefeng.guns.modular.certification.service.IRealNameService实现类,在实现类加上累注解@Service

你可能感兴趣的:(Spring,boot,java,异常)