Due to everything, whether it is also the development and test, it is necessary to write the class and method of connecting the database. In fact, there is no big difference, and the existing JDBC's interface features are still very restricted. Of course, if you use such as If you have something such as Hibernate, these things are big or not. Even with a DAO method, use a ready-made thing to get a database connection, or a quick one is coming, comfortable in your heart, so I wrote a generic connection database Bag, three of which: 1.dbconn.java: Mainly used to connect and close the database. Connect the database's URL, User, Password Complete COM / BCXY / UTIL / SystemConfig.properties2.sqlQuery.java: mainly To perform the SQL statement of the query. Constructor: SQLQuery (Connection Con, String SQL); there is a container. 3. SQLUPDATE.JAVA: Mainly used to perform updated SQL statements. Construction method: SQLUpdate (Connection Con, String SQL Another: There is a util. *, Mainly some common tool classes, which mainly introduces Stringutil.Java: Some operations for strings DateutUTIL.java: Some operations for time Fileutil. Java: Some operations for files SystemConfig.java: Read Profile SystemConfig.propertiesParamutil.java: API Document: http://www.bcxy.com/ttp:/bcxydoc/jar Package and Source File: http : //www.bcxy.com/tools/bcxy.rar The above thing is a little summary I am working in work, and it will always be perfect. I hope everyone will provide some opinions. I hope to provide some convenience. If there is any problem Everyone can send an email contact: webmaster@bcxy.com