Just now a classmate in the group raised such a question.
There's a statement in MyBatis's mapper file that says so.
said that the system does not error, also did not return, I look at the sentence should be no problem. The execution of the time should be PreparedStatement execution select......where? =?; Take the incoming parameters and get them in.
But I did the following experiments with my own package of dbutil.
There's something I can do to get to know this dbutil.
Packaging of the Dbutil database connection for the data layer of the hands-on package
Encapsulation of Datautil database operations in a hands-on package data layer
The returned results are as follows
Executes the same statement, the return result is not the same, obviously the SQL statement is not allowed to write this, but it does not report SqlException may be a loophole.
A problem with MySQL statements