Could not autowire. No beans of … type found
在 Application.java 上加上扫描范围,如:@ComponentScan({"com.example.mybatis.mysql.sqlmapper.*", "com.example.mybatis.mysql.model.*"})
Invalid bound statement (not found): com.example.mybatis.mysql.dao.SysUserDao.getListCount",
注意扫描范围的配置
@ComponentScan({"com.example.myproject.*","com.example.mybatis.mysql.dao.*"})
@MapperScan({"com.example.mybatis.mysql.sqlmapper.*"})
页:
[1]