????1.???????web???
????2.????????????????lib???????????????У?mysql??sqlserver??oracle?? ???????????????????????????
????3.??д???????????????????????????????????mysql??????????
???????????
????public class DataUtils {
????/**
????* ???????л?????????
????* @return
????*/
????public static Connection getConn(){
????Connection conn = null;
????try {
????Class.forName("com.mysql.jdbc.Driver").newInstance();
????//???test???????root??????admin??
????conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test"?? "root"?? "admin");
????} catch (Exception e) {
????e.printStackTrace();
????}
????return conn;
????}
????}
????4.???????????????????????????????????????????????????????????????????