JAVA-005 / Intermediate
MyBatis ${} in LIKE searches
Why is this a problem?
'%${kw}%' causes both injection and wildcard abuse.
How to fix it
xml
WHERE title LIKE CONCAT('%', #{keyword}, '%') JAVA-005 / Intermediate
'%${kw}%' causes both injection and wildcard abuse.
WHERE title LIKE CONCAT('%', #{keyword}, '%')