There is no getter for property named 'sqlMap' in 'class java.lang.String'

Mybatis異常信息如下:

Caused by: org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'sqlMap' in 'class java.lang.String'

解決方案一:在參數前加@Param標籤

public Map<String, Object> selectLast(@Param("userCode") String  userCode);
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章