课程
/后端开发
/Java
/SpringBoot构建电商基础秒杀项目
提示找不到SQL语句
2019-01-16
源自:SpringBoot构建电商基础秒杀项目 2-4
正在回答
在pom里面的加入
<build> ... <resources> <resource> <directory>src/main/resources</directory> </resource> </resources> ...</build>
我这里是把
mybatis.mapperLocation=classpath:mapping/*.xml
改成mybatis.mapper-locations=classpath:mapping/*.xml 就行
我也是同样的问题
是xml的路径不对
老师的application.properties 写的是
mybatis.mapper-locations=classpath:mapper/*.xml
但是mapper的实际目录是
mybatis.mapper-locations=classpath:mapping/*.xml
这个个地方路径不对
举报
应用SpringBoot快速搭建拥有用户、商品、交易及秒杀活动的电商秒杀应用。
6 回答org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.yang.miaoshaproject.dao.UserDOMapper.selectByPrimaryKey
1 回答org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.seckillproject.dao.UserDOMapper.selectByPrimaryKey
1 回答创建失败,原因为未知错误 [org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.miaoshaproject.dao.ItemDOMapper.insertSelective]
1 回答执行到service时报错: Invalid bound statement (not found): com.example.demo.dao.UserInfoCeshiMapper.selectByPrimaryKey
2 回答打开界面,500错误,Invalid bound statement (not found): com.miaoshaproject.service.UserService.getUserById