Mybatis @Param parameter record

Error message

org.apache.ibatis.binding.BindingException: Parameter 'XX' not found. Available parameters are [1, 0, param1, param2] 

Solution:

使用@Param

Regarding @Param when is it used and when is it not used? Read this blog: about the problem of multi-parameter methods in Mybatis Mapper not using @param annotations to report errors

Guess you like

Origin blog.csdn.net/lw112190/article/details/107245048