前端获取数据时,报错:Error querying database. Cause: java.sql.SQLSyntaxErrorException: 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 '*) from easyuser
where username like '%%'' at line 1

根据描述,发现是select count ()语句使用的是自动补全的(),是官方的关键字,使用时count()需要自己输入

Q.E.D.


No Pain,No Gain~