課程
/后端開發
/Java
/SpringBoot構建電商基礎秒殺項目
代碼可以生成,但是進入網頁之后報這個錯
2018-12-29
源自:SpringBoot構建電商基礎秒殺項目 2-4
正在回答
樓主解決了嗎?有人來回答一下嗎?代碼:https://github.com/shawbs/miaosha-demo
先看看你的啟動類上@MapperScan這個注解掃描的路徑是不是你mapper接口所在的路徑。
把 mybatis.mapper-locations=classpath:mapping/*.xml 改成 mybatis.mapper-locations=classpath:mappers/*.xml
老師的application.properties 寫的是
mybatis.mapper-locations=classpath:mapper/*.xml
但是mapper的實際目錄是
mybatis.mapper-locations=classpath:mapping/*.xml
這個個地方路徑不對
sgdy23
慕神03185 回復 sgdy23
我也有相同的問題,借地發一張截圖。。
路徑錯了。。。。。。
舉報
應用SpringBoot快速搭建擁有用戶、商品、交易及秒殺活動的電商秒殺應用。
4 回答org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.admxj.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]
2 回答打開界面,500錯誤,Invalid bound statement (not found): com.miaoshaproject.service.UserService.getUserById
1 回答執行到service時報錯: Invalid bound statement (not found): com.example.demo.dao.UserInfoCeshiMapper.selectByPrimaryKey
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-01-16
樓主解決了嗎?有人來回答一下嗎?代碼:https://github.com/shawbs/miaosha-demo
2021-03-17
先看看你的啟動類上@MapperScan這個注解掃描的路徑是不是你mapper接口所在的路徑。
2019-01-17
2019-01-16
老師的application.properties 寫的是
但是mapper的實際目錄是
這個個地方路徑不對
2019-01-15
我也有相同的問題,借地發一張截圖。。
2018-12-29
路徑錯了。。。。。。