JDBC封裝數據庫鏈接與關閉的工具類

1.src目錄下建立配置文件:db.properties,內容以下: jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/數據庫名?useUnicode=true&characterEncoding=utf-8 jdbc.username=root jdbc.password=1234 1.封裝工具類,內容以
相關文章
相關標籤/搜索