{"id":305,"date":"2017-10-15T10:46:13","date_gmt":"2017-10-15T02:46:13","guid":{"rendered":"http:\/\/pony.hk\/?p=305"},"modified":"2017-10-15T11:37:00","modified_gmt":"2017-10-15T03:37:00","slug":"java%e8%bf%9e%e6%8e%a5mysql%ef%bc%8c%e6%8a%a5jdbc-driver%e9%94%99%e8%af%af","status":"publish","type":"post","link":"https:\/\/lnmp.ivan.xin\/?p=305","title":{"rendered":"java\u8fde\u63a5mysql\uff0c\u62a5JDBC driver\u9519\u8bef"},"content":{"rendered":"<p>\u65e5\u5fd7\u9519\u8bef\uff1a<br \/>\nOct 15, 2017 12:45:01 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc<br \/>\nSEVERE: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.<br \/>\nOct 15, 2017 12:45:01 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads<br \/>\nSEVERE: The web application [] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.<\/p>\n<p>\u89e3\u51b3\uff1a\u66f4\u65b0mysql jdbc\u9a71\u52a8\u7a0b\u5e8f<br \/>\n1\u3001\u5220\u6389java lib\u76ee\u5f55\u91cc\u8fb9\u7684\u6587\u4ef6mysql-connector-java......jar\uff0c\u540c\u6837\u5728tomcat lib\u76ee\u5f55\u548c\u7a0b\u5e8flib\u76ee\u5f55\u91cc\u627e\u5230\u7c7b\u4f3c\u7684\u6587\u4ef6\uff0c\u90fd\u8981\u5220\u9664\u3002<br \/>\n2\u3001\u5230<a href=\"https:\/\/dev.mysql.com\/downloads\/connector\/j\/\" target=\"_blank\" rel=\"noopener\">https:\/\/dev.mysql.com\/downloads\/connector\/j\/<\/a>\u4e0b\u8f7d\u6700\u65b0\u7684\u9a71\u52a8\uff0c\u89e3\u538b\u7f29\uff0c\u628a\u91cc\u8fb9\u7684mysql-connector-java-......-bin.jar\u62f7\u8d1d\u5230tomcat\u7684lib\u76ee\u5f55\u3002\u6ce8\u610f\uff1a\u5fc5\u987b\u662ftomcat\u7684lib\u76ee\u5f55\uff0c\u4e0d\u80fd\u662f java lib\u76ee\u5f55\uff0c\u4e5f\u4e0d\u80fd\u662f\u7a0b\u5e8f\u6307\u5b9a\u7684lib\u76ee\u5f55\u3002<\/p>\n<p>\u5907\u6ce8\uff1a<br \/>\nConnector\/J 5.1 \u652f\u6301Mysql 4.1\u3001Mysql 5.0\u3001Mysql 5.1\u3001Mysql 6.0 alpha\u8fd9\u4e9b\u7248\u672c\u3002<br \/>\nConnector\/J 5.0 \u652f\u6301MySQL 4.1\u3001MySQL 5.0 servers\u3001distributed transaction (XA)\u3002<br \/>\nConnector\/J 3.1 \u652f\u6301MySQL 4.1\u3001MySQL 5.0 servers\u3001MySQL 5.0 except distributed transaction (XA) support\u3002<br \/>\nConnector\/J 3.0 \u652f\u6301MySQL 3.x or MySQL 4.1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65e5\u5fd7\u9519\u8bef\uff1a Oct 15, 2017 12:45:01 AM org.apache.catalina.load...<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22781],"tags":[],"class_list":["post-305","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/posts\/305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=305"}],"version-history":[{"count":0,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=\/wp\/v2\/posts\/305\/revisions"}],"wp:attachment":[{"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lnmp.ivan.xin\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}