Caused by: org.mybatis.spring.MyBatisSystemException
时间: 2023-08-27 22:14:20 浏览: 43
引用在这个引用中,它表明可能存在一个类型转换错误,即将String类型的certno转换为Integer类型时发生了错误。具体地说,这个错误可能是由于未设置合适的JdbcType导致的。在你的代码中修复了这个问题,将方法定义改为了:Integer selectCountByCertno(@Param("certno") String certno)。通过这个注解,MyBatis将能够正确地将String类型的参数转换为Integer类型。所以在你的代码中,@PathVariable("certno") String certno表示将URL路径中的certno参数的值赋值给方法的certno参数。
总结起来,你遇到的问题是由于MyBatis类型转换错误导致的MyBatisSystemException。你通过添加@Param注解并指定正确的JdbcType来解决了这个问题。另外,你在Controller中使用了@PathVariable注解来获取URL路径中的参数。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException](https://blog.csdn.net/qq_43593107/article/details/121136995)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [完美解决org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflec](https://blog.csdn.net/weixin_50843918/article/details/130693744)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]