JAVA-003 / Intermediate
MyBatis ${} in value positions
Why is this a problem?
${} substitutes text directly rather than binding a value.
How to fix it
xml
<select id="findByName" resultType="User">
SELECT * FROM users WHERE name = #{name}
</select>