|
66 | 66 | * [https://sourceforge.net/projects/jsqlparser](https://sourceforge.net/projects/jsqlparser)
|
67 | 67 | * [https://github.com/braisdom/ObjectiveSql](https://github.com/braisdom/ObjectiveSql)
|
68 | 68 | * [https://github.com/prestodb/presto](https://github.com/prestodb/presto)
|
69 |
| -* [https://github.com/liweihua274/druid-sqlparser](https://github.com/liweihua274/druid-sqlparser) |
70 |
| - * [https://github.com/alibaba/druid/wiki/SQL-Parser](https://github.com/alibaba/druid/wiki/SQL-Parser) |
71 |
| - * [Java工具篇之Druid SQL语法解析树](https://developer.aliyun.com/article/1000273) |
72 | 69 | * [https://github.com/camertron/SQLParser](https://github.com/camertron/SQLParser)
|
73 | 70 | * [https://github.com/iByteCoding/M-SQLParser](https://github.com/iByteCoding/M-SQLParser)
|
74 | 71 | * [https://github.com/jparsec/jparsec](https://github.com/jparsec/jparsec)
|
75 | 72 | * [https://github.com/manasesjesus/fdbs-and-sql-parser](https://github.com/manasesjesus/fdbs-and-sql-parser)
|
| 73 | +* [https://github.com/liweihua274/druid-sqlparser](https://github.com/liweihua274/druid-sqlparser) |
| 74 | + * [https://github.com/alibaba/druid/wiki/SQL-Parser](https://github.com/alibaba/druid/wiki/SQL-Parser) |
| 75 | + * [Java工具篇之Druid SQL语法解析树](https://developer.aliyun.com/article/1000273) |
76 | 76 |
|
77 | 77 |
|
78 | 78 |
|
|
85 | 85 | - [https://github.com/brettwooldridge/HikariCP](https://github.com/brettwooldridge/HikariCP)
|
86 | 86 | - [https://github.com/alibaba/druid](https://github.com/alibaba/druid)
|
87 | 87 | - [https://alphahinex.github.io/2022/05/15/use-druid-to-transform-sql](https://alphahinex.github.io/2022/05/15/use-druid-to-transform-sql)
|
| 88 | + - [记一次 Druid 超时配置的问题 → 引发对 Druid 时间配置项的探究](https://www.cnblogs.com/youzhibing/p/16458860.html) |
| 89 | + - [真的会用removeAbandoned吗](https://blog.csdn.net/qq_42590394/article/details/134982378) |
| 90 | + - [druid双刃剑参数之removeAbandoned](https://www.cnblogs.com/tiancai/p/17651907.html) |
88 | 91 | - [https://github.com/apache/tomcat/tree/main/modules/jdbc-pool](https://github.com/apache/tomcat/tree/main/modules/jdbc-pool)
|
89 | 92 | - [https://tomcat.apache.org/tomcat-9.0-doc/jdbc-pool.html](https://tomcat.apache.org/tomcat-9.0-doc/jdbc-pool.html)
|
90 | 93 | - [https://github.com/apache/commons-dbcp](https://github.com/apache/commons-dbcp)
|
|
123 | 126 |
|
124 | 127 | ## JDBC驱动
|
125 | 128 |
|
126 |
| -**注意使用的JDBC驱动** |
127 | 129 |
|
128 |
| -- `com.mysql.jdbc.Driver`是`mysql-connector-java 5`中的,不再推荐使用 |
129 |
| -- `com.mysql.cj.jdbc.Driver`是`mysql-connector-java 6`中的 |
| 130 | +**注意使用的MySQL Connector/J驱动** |
| 131 | + |
| 132 | +- `org.gjt.mm.mysql.Driver` 用于`3.x`版本之前,在`5.1.47`以上版本不存在该类,由一个名为MM (Monty's MySQL) 的项目开发的,该项目后来被Sun Microsystems收购 |
| 133 | +- `com.mysql.jdbc.Driver` 用于`5.1.6`版本之前,在MySQL AB(后被Oracle Corporation收购)接手并继续开发JDBC驱动之后使用的 |
| 134 | +- `com.mysql.cj.jdbc.Driver` 用于`5.1.6`版本之后 |
130 | 135 |
|
131 |
| -> 如果`mysql-connector-java`用的`6.0`以上的,但是你的`driver`用的还是`com.mysql.jdbc.Driver`,就会报错 |
| 136 | +> 从Java 6 `JDBC 4.0`开始,显式加载驱动类的步骤`Class.forName(…)`通常是不必要的,因为JDBC服务提供者机制会自动加载驱动 |
132 | 137 |
|
133 | 138 |
|
134 | 139 |
|
|
0 commit comments