Mybatis 模糊查詢 like【筆記】Could not set parameters for mapping

當使用mybatis 做模糊查詢時如果這樣寫 會報 Could not set parameters for mapping: ParameterMapping{property='keywords' # 是起的佔位符的作用,但是寫在了字符串裏面無法起到佔位符的作用,這是我們要用 $ 這裏 $ 接收內容並且連接字符串,所形成的sql  就是  select id,name from tablena
相關文章
相關標籤/搜索