JAVA-079 / Intermediate
Using LIMIT ${size} in MyBatis mappers
Why is this a problem?
Pagination-value injection and unlimited retrieval.
How to fix it
xml
SELECT * FROM post LIMIT #{size} OFFSET #{offset} <!-- Verify driver binding support and cap size -->