org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.binding.BindingExce

下面的意思是說沒有找到userId這個屬性。 報錯代碼,因爲 Mybatis 把 String userId 當成一個對象,並在對象中找 userId 這個屬性,很明顯裏面沒有,所以報錯。 加上@Param註解就可以解決問題。
相關文章
相關標籤/搜索