My project was scanned by Checkmarx, and all the Mybatis xml files show the same risk: Improper Exception Handling.
The report says that every resultMap code like this <resultMap id="resultMap" type="com.example.Test"> may throw expected exceptions, and should be wrapped in a try-catch block.
But we can't write try-catch in xml files. We've done exception handling everywhere we use the sql code, but still get the same result.
Is there anyway to prevent Checkmarx showing this vulnerability?