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