如何解决Tomcat日志中针对MySQL NoClassDefFoundError的恒定错误:com / mysql / cj / protocol / ExportControlled
我有一个同时具有MysqL和Mongo DB的spring boot API。现在,在本地运行时,一切正常,...日志中没有错误。
现在第二次将其部署到生产环境(Debian 10)中的Tomcat上,在日志中不断看到以下内容。
现在只是要说,Spring-> MysqL插入和查询工作正常,没有问题。只是这个错误不断地填满日志...确实卡在了这个日志上!
感谢您抽出宝贵的时间!
Exception in thread "HikariPool-5 connection closer" java.lang.NoClassDefFoundError: com/MysqL/cj/protocol/ExportControlled
at com.MysqL.cj.protocol.NetworkResources.forceClose(NetworkResources.java:53)
at com.MysqL.cj.protocol.AbstractSocketConnection.forceClose(AbstractSocketConnection.java:103)
at com.MysqL.cj.protocol.a.NativeProtocol.quit(NativeProtocol.java:1227)
at com.MysqL.cj.NativeSession.quit(NativeSession.java:174)
at com.MysqL.cj.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:1733)
at com.MysqL.cj.jdbc.ConnectionImpl.close(ConnectionImpl.java:721)
at com.zaxxer.hikari.pool.PoolBase.quietlyCloseConnection(PoolBase.java:143)
at com.zaxxer.hikari.pool.HikariPool.lambda$closeConnection$1(HikariPool.java:451)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
Exception in thread "HikariPool-5 connection closer" java.lang.NoClassDefFoundError: com/MysqL/cj/protocol/ExportControlled
at com.MysqL.cj.protocol.NetworkResources.forceClose(NetworkResources.java:53)
at com.MysqL.cj.protocol.AbstractSocketConnection.forceClose(AbstractSocketConnection.java:103)
at com.MysqL.cj.protocol.a.NativeProtocol.quit(NativeProtocol.java:1227)
at com.MysqL.cj.NativeSession.quit(NativeSession.java:174)
at com.MysqL.cj.jdbc.ConnectionImpl.realClose(ConnectionImpl.java:1733)
at com.MysqL.cj.jdbc.ConnectionImpl.close(ConnectionImpl.java:721)
at com.zaxxer.hikari.pool.PoolBase.quietlyCloseConnection(PoolBase.java:143)
at com.zaxxer.hikari.pool.HikariPool.lambda$closeConnection$1(HikariPool.java:451)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at java.base/java.lang.Thread.run(Thread.java:832)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。