报错:StatementCallback; bad SQL grammar [selert * from user ]; nested exception is 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 'selert * from user' at line 1
原代码:
String sql = "selert * from user ";
错误原因:sql语句写错了,应改为
String sql = "select * from user ";