错误: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 '' at line 1
原因:在EmployeeMapper.xml中mysql语句写错了。
检查之后发现并没有显眼的错误,仔细观察后发现了这个错误:以下注释应当删除不然spring默认有空格
重新修改启动后,访问接口,错误消失: