错误的详细情况如下:Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You h来自ave an error in your SQL syntax; check the manual that corres360新知ponds to your MySQL server version for the righ环委t syntax to u井试秋se near 'from msg_message t' at line 6
方法
要了解这个错误,这个错误是本质是mysql数据库报的错,所以都是软件mysql反溃给控制台的。错误就发生在控制台。
找到错误的主体部分进行简单的翻译一下,
这里的错误主题应该是:You have an er攻南破庆石ror in your S山富制显六QL syntax; check the manual tha措扩右沉大马实t corresponds to your MySQL server version for the right syntax to use near 'from msg_message t' at line 6
根据上面的翻译我们大概得到结论:在sql语句的第6行有个语法错误。检查一下。
由于sql语句写在了mybaitis中所以要去xml配置文件中寻找,
多了一个逗号,好了去掉它。重启tomcat服务器。
tomcat重新启动成功,访问刚才报错的页面,正常。