JDBC连接MySQL

JDBC连接MySQL数据库

<property name="driver" value="com.mysql.cj.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://localhost:3306/test1?useUnicode=true&amp;characterEncoding=utf-8&amp;useSSL=false&amp;serverTimezone=Asia/Shanghai"/>
<property name="username" value="root"/>
<property name="password" value="123456"/>

driver=com.mysql.cj.jdbc.Driver
url=jdbc:mysql://localhost:3306/test1?useUnicode=true&amp;characterEncoding=utf-8&amp;useSSL=false&amp;serverTimezone=Asia/Shanghai
username=root
password=123456
posted @ 2020-05-24 18:53  我不爱吃鱼  阅读(193)  评论(0编辑  收藏  举报
Live2D