当前位置:网站首页>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
边栏推荐
猜你喜欢

内存池(内核角度理解new开辟空间的过程)

Job object of collaboration in kotlin

Thread safe singleton mode

Introduce in detail how to communicate with Huawei cloud IOT through mqtt protocol

Create + register sub apps_ Define routes, global routes and sub routes
![[shutter] bottom navigation bar page frame (bottomnavigationbar bottom navigation bar | pageview sliding page | bottom navigation and sliding page associated operation)](/img/6e/67bc187a89fb9125856c78c89f7bfb.gif)
[shutter] bottom navigation bar page frame (bottomnavigationbar bottom navigation bar | pageview sliding page | bottom navigation and sliding page associated operation)
![[shutter] bottom navigation bar implementation (bottomnavigationbar bottom navigation bar | bottomnavigationbaritem navigation bar entry | pageview)](/img/41/2413af283e8f1db5d20ea845527175.gif)
[shutter] bottom navigation bar implementation (bottomnavigationbar bottom navigation bar | bottomnavigationbaritem navigation bar entry | pageview)

Tongda OA V12 process center

stm32F407-------DMA

怎么将yolov5中的PANet层改为BiFPN
随机推荐
easyPOI
人脸识别6- face_recognition_py-基于OpenCV使用Haar级联与dlib库进行人脸检测及实时跟踪
Pytorch convolution network regularization dropblock
QT qcombobox add qccheckbox (drop-down list box insert check box, including source code + comments)
Gbase 8C system table PG_ aggregate
The data in servlet is transferred to JSP page, and the problem cannot be displayed using El expression ${}
My creation anniversary
Codeforces Round #418 (Div. 2) D. An overnight dance in discotheque
GBase 8c系统表-pg_auth_members
机器学习流程与方法
Gbase 8C system table PG_ class
Job object of collaboration in kotlin
GBase 8c系统表pg_database
定了,就选它
【教程】chrome关闭跨域策略cors、samesite,跨域带上cookie
GBase 8c系统表-pg_constraint
Oauth2.0 authentication, login and access "/oauth/token", how to get the value of request header authorization (basictoken)???
cvpr2022去雨去雾
GBase 8c系统表-pg_class
单词单词单词