下图是xml文件配置
dao的路径和方法名:
mapperscan配置:
只要运行查询方法,就报这个错:
Invalid bound statement (not found): hz.playspringboot.demo.dao.StudentDao.queryStudent
看了半天也没发现哪里有问题,各位帮忙看看
下图是xml文件配置
dao的路径和方法名:
mapperscan配置:
只要运行查询方法,就报这个错:
Invalid bound statement (not found): hz.playspringboot.demo.dao.StudentDao.queryStudent
看了半天也没发现哪里有问题,各位帮忙看看
虽然你配置了dao扫描,但你dao类上没加注解,spring不会处理了,乳楼上说的加上@Repository注解试试