当前位置:网站首页>Bindingexception exception (error reporting) processing

Bindingexception exception (error reporting) processing

2022-07-07 07:12:00 @ljn

When used Spring Integrate MyBatis When , If this error occurs , The solution is as follows :

1  because mapper File with the mapper The mapping file is not in the same package , Check the file storage location

  Be careful resources Build a file package inside , use / for example com/bukaedu/dao( Be sure to make contact with java Separate the construction package under )

2 mapper.xml Defined in the file resultType To work with dao The return value types of methods required by the interface are consistent !

3、application.yml Medium mybatis The configuration path should be consistent with the project

原网站

版权声明
本文为[@ljn]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070205337070.html