mybatis parameter binding error

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/weixin_39207535/article/details/80944695
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingException: Parameter 'id' not found. Available parameters are [0, 1, param1, param2]

mybatis parameter binding error;

You see this error, you need to check to see if there are more than three parameters corresponding method for your controller, if there is, then to slightly

Figure:

This will be easier to find mapper corresponding method before you add parameters passed back stage @Param ( "fields")

as follows:

In this way, the problem is solved

Guess you like

Origin blog.csdn.net/weixin_39207535/article/details/80944695