错误描述:在搜索框内输入一个单引号‘,即name=“’”,后台报错:
Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%'
原因:
xml文件中select的写法: