mybatis中使用mysql的模糊查询字符串拼接(like) 方法:concat ()方法用于连接两个或多个数组 like concat (‘%’,#{selectword},‘%’) 例如: <select id="getList" resultType="com.qike.domain.DataVO"> SELECT * FROM host_sjfd where grade like concat('%',#{selectword},'%') </select>