问题:Invalid bound statement (not found): com.cskaoyan.demo7.mapper.UserMapper.selectByPrimaryKey
方法:com.cskaoyan.demo7.mapper改为com/cskaoyan/demo7/mapper
解决办法:
1、最佳:在yml或者properties文件中配置
mybatis.mapper-locations=classpath*:mapper/*Mapper.xml
2、在resources文件下多层建目录,用“” / ” 分割而不是用点(本人解决方法)