Java Connection Database Components - Further Packages of JDBC

xiaoxiao2021-03-06  62

A toolkit that issued a Java connection database, please click on the "Java Connection Database Universal Program and Some Help Clas" to view. Recently, it has been further upgraded. New main features: 1, add log log record Function, combined with log4j, making program debugging more convenient. As long as the initial level of log4j is changed to: Debug, the connection, turn off the database and the SQL statement executed.

2. Use more convenient ways. Example: <% string SQL = "SELECT TT from Test"; SQLQuery RS = New SqlQuery (SQL); While (! Rs.eof ()) {out.pritnln (rs.get ("tt"); rs.next ();}%> Configuring Database Connections As long as the configuration file is modified: com / bcxy / util / systemconfig.properties === file ## jdbc # driver = com.mysql.jdbc.driver # url = jdbc: mysql: //192.168 .1.10 / newmaxcard? Useunicode = true & characterencoding = GB2312 # user = root # password = maxcard

Driver = com.mysql.jdbc.driverURL = jdbc: mysql: //192.168.1.10/newmaxcard? useunicode = true & characterencoding = GB2312USER = rootpassword = maxcard

## datasource

#datasource = java: comp / env / jdbc / maxcarddataroup = java: comp / env / jdbc / maxcard

## Connect Type 0: JDBC 1: Datasource

#ConNType = 0conNType = 0

JDBC connection and database connection pool are currently supported. No need to consider closing the database connection. In the future, other functions will be added, and it is hoped to provide convenient applications to the system architecture. If you have any questions, you can send your email: Webmaster@bcxy.com

Ezerg ---- Programming

转载请注明原文地址:https://www.9cbs.com/read-105969.html

New Post(0)