当前位置:网站首页>Error invalid bound statement (not found): com ruoyi. stock. mapper. StockDetailMapper. XXXX solution
Error invalid bound statement (not found): com ruoyi. stock. mapper. StockDetailMapper. XXXX solution
2022-07-03 02:27:00 【Mengyuan Xingfan】
Network has many solutions , I haven't solved it , It turned out to be a file xml.xml 了 , One more. .xml
Other methods are attached below :
1. Check xml Where are the documents package Name and Mapper interface Package name
<mapper namespace="me.tspace.pm.dao.UserDao">
mapper Of namespace It's not right !!! Attention system modification .
2.UserDao The method of in UserDao.xml There is no , And then execute UserDao The method will report this
3. UserDao The method return value of is List<User>, and select Element is not configured correctly ResultMap, Or just configure ResultType!
4. If you confirm that there are no above questions , Please modify the corresponding xml file , For example, delete a blank line , preservation . Problem solving
5. look down mapper Of XML Whether the configuration path is correct
About Mybatis-plus Report errors Invalid bound statement (not found):com.xxx.xxx.xxxMapper.selectList

This error may be written by yourself UserMapper Time inherits BaseMapper But not added Generic .

Just add the corresponding generic ,
The result will not be wrong
If you check everything , And it turns out there's no problem , It's better to look at your own configuration file , At that time, it was very likely that the configuration was less scanning mapper Things that are :
Creating SqlSessionFactory When , The following configuration is added :
sqlSessionFactoryBean.setMapperLocations(new PathMatchingResourcePatternResolver().getResources("classpath:mapper/*.xml"));
sqlSessionFactoryBean.setTypeAliasesPackage("com.test.maper");
And pay attention to sqlSessionFactoryBean.setTypeAliasesPackage Parameter does not support wildcards *, If there are multiple packages available through "," Equal division
If you need to load the dependency passed jar In bag mapper In the catalog xml,classpath:mapper/*.xml It is amended as follows classpath*:mapper/*.xml
边栏推荐
- Return a tree structure data
- Awk from introduction to earth (0) overview of awk
- Job object of collaboration in kotlin
- 人脸识别6- face_recognition_py-基于OpenCV使用Haar级联与dlib库进行人脸检测及实时跟踪
- Detailed introduction to the usage of Nacos configuration center
- 面试八股文整理版
- awk从入门到入土(1)awk初次会面
- Su Shimin: 25 principles of work and life
- Cfdiv2 Fixed Point Guessing - (2 points for Interval answer)
- Iptables layer 4 forwarding
猜你喜欢
![[shutter] pull the navigation bar sideways (drawer component | pageview component)](/img/6f/dfc9dae5f890125d0cebdb2a0f4638.gif)
[shutter] pull the navigation bar sideways (drawer component | pageview component)

Return a tree structure data

通达OA 首页门户工作台

Recommendation letter of "listing situation" -- courage is the most valuable

Producer consumer model based on thread pool (including blocking queue)

Principle and application of database

Job object of collaboration in kotlin

Thread safe singleton mode

Detailed introduction to the usage of Nacos configuration center

基于线程池的生产者消费者模型(含阻塞队列)
随机推荐
Leetcode 183 Customers who never order (2022.07.02)
定了,就选它
elastic stack
Codeforces Round #418 (Div. 2) D. An overnight dance in discotheque
【翻译】具有集中控制平面的现代应用负载平衡
[Hcia]No.15 Vlan间通信
错误Invalid bound statement (not found): com.ruoyi.stock.mapper.StockDetailMapper.xxxx解决
GBase 8c系统表-pg_class
Awk from entry to burial (1) awk first meeting
【翻译】Flux安全。通过模糊处理获得更多信心
Cfdiv2 fixed point guessing- (interval answer two points)
Codeforces Round #418 (Div. 2) D. An overnight dance in discotheque
返回一个树形结构数据
Missing library while loading shared libraries: libisl so. 15: cannot open shared object file: No such file
Memory pool (understand the process of new developing space from the perspective of kernel)
RestCloud ETL 跨库数据聚合运算
Qt之QComboBox添加QCheckBox(下拉列表框插入复选框,含源码+注释)
Apple releases MacOS 11.6.4 update: mainly security fixes
Kotlin middle process understanding and Practice (I)
Tongda OA V12 process center