package pw.goyd.db;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import pw.goyd.game.constant.setting.ServerSetting;
/*
废弃了 用mybatis代替
@author StanWind
*/
public class DBUtil implements ServerSetting {
// 获取数据库连接
public static Connection getConnection() {
Connection conn = null;
try {
Class.forName("com.mysql.jdbc.Driver");
conn = DriverManager.getConnection("jdbc:mysql://" + M_ADDR + ":"