问题:
2021-04-27 19:48:09.528 ERROR 27192 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Field cardTypeService in cn.yihuazt.cols.controller.CardTypeController required a bean of type 'cn.yihuazt.cols.service.card.ICardTypeService' 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 'cn.yihuazt.cols.service.card.ICardTypeService' in your configuration.
Disconnected from the target VM, address: '127.0.0.1:50194', transport: 'socket'
Process finished with exit code 1
原因:
servcie没有添加@Service注解
解决:
@Service
public class CardTypeService implements ICardTypeService {
}