Notice
Recent Posts
Recent Comments
Link
목록USER_PASS (1)
개발 무지렁이
[JDBC] DBManager, DBProperties
DBManager [DBManager.java] public class DBManager { /** * 로드 **/ static { try { Class.forName(DBProperties.DRIVER_NAME); } catch(ClassNotFoundException e) { e.printStackTrace(); } } /** * 연결 **/ public static Connection getConnection() throws SQLException { return DriverManager.getConnection(DBProperties.URL, DBProperties.USER_ID, DBProperties.USER_PASS); } /** * 닫기(DML 전용) **/ public static voi..
Backend/JDBC
2023. 4. 19. 17:29