1、基本驱动连接url
jdbc:mysql://127.0.0.1:3306/demo
2、参数
| 参数 | 缺省值 | 说明 | 粘贴 |
|---|---|---|---|
| useSSL | 是否使用ssl加密连接mysql,一般指定false就行,除非项目需要 | useSSL=false | |
| useUnicode | false | 是否使用Unicode字符集,如果参数characterEncoding设置为utf-8,本参数值必须设置为true | useUnicode=true |
| characterEncoding | 当useUnicode设置为true时,指定字符编码。比如可设置为utf-8 | characterEncoding=utf8 | |
| useServerPrepStmts | false | sql语句预编译功能 | useServerPrepStmts=true |
浙公网安备 33010602011771号