bindbindbind 元素可以从 OGNL 表达式中创建一个变量并将其绑定到上下文。比如: <select id="selectBlogsLike" resultType="Blog"> <bind name="pattern" value="'%' + _parameter.getTitle() + '%'" /> SELECT * FROM BLOG WHERE title LIKE #{pattern}</select>