Cause: org.apache.ibatis.binding.BindingException: Parameter 'brand' not found

Cause: org.apache.ibatis.binding.BindingException: Parameter ‘brand’ not found 1.錯誤現象 2.錯誤原因 Dao層的接口 xml配置文件 錯誤原因以及修改辦法:在mybatis中如果使用if,where等標籤的時候,dao層的參數需要用@Param註解,如上圖中的teg字段,同時在xml的SQL語句中,參數的獲取也需要
相關文章
相關標籤/搜索