firemail

标题: Could not autowire. No beans of … type found [打印本页]

作者: java    时间: 2017-8-2 18:09
标题: Could not autowire. No beans of … type found
在 Application.java 上加上扫描范围,如:
@ComponentScan({"com.example.mybatis.mysql.sqlmapper.*", "com.example.mybatis.mysql.model.*"})

作者: java    时间: 2017-8-3 11:43
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.*"})






欢迎光临 firemail (http://firemail.wang:8088/) Powered by Discuz! X3