org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.song.springmybatisboot.dao.StudaoInterface.pg1
这句话也加了
mybatis:
mapper-locations: classpath:/resources/mapper/*.xml
type-aliases-package: com.song.springmybatisboot.dao
没用
mapper-locations: classpath:/resources/mapper/*.xml 修改成 mapper-locations: classpath:mapper/*.xml
如果还没有好
然后排查一下你的mapper 接口有没有被扫描到容器里 排查一下你的target 目录里有没有对应的mapper.xml文件