Springboot項目報mybatis的錯誤,org.apache.ibatis.binding.BindingException:Parameter 'uid' not found.

在Springboot項目中使用了mybatis作爲orm模型,項目中報錯如下: 後經檢查是由於在mybatis生成的Mapper文件中,使用了spring提供的org.springframework.data.repository.query.Param包,改成org.apache.ibatis.annotations.Param包就可以。究其原因是由於我在mybatis的xml中使用的是myb
相關文章
相關標籤/搜索