java.lang.RuntimeException: org.springframework.jdbc.BadSqlGrammarException: \n### Error querying database. Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '*)\n from
原sql
select count (*) from table ...
count 和(*) 中间不能有空格
`select count(*) from table ... `
改为这样就好了