APPLICATION FAILED TO START
Description:
Field cacheDao in cn.kgc.service.DoctorServiceImpl required a bean of type ‘cn.kgc.dao.CacheDao’ 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.kgc.dao.CacheDao’ in your configuration.
Process finished with exit code 1
这样的报错多半是因为少了注解,发生过两次类似的情况 都找不到原因,dao包,mapper包下一定要有注解哟