Java开发笔记之项目启动报错expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.spr...
看下 spring容器启动时报错,看报错图:
需要检查如下:
/** 1. application.yml内的mybatis->mapper-location和type-aliases-package路径是否覆盖该对象; 2. mapper目录下的xml文件顶部, namespace是否指向该对象的Dao目录; 3. dao/service/controller内是否正确引用了该对象,检查引用路径; */