커넥션풀 (1) 썸네일형 리스트형 커넥션풀과 데이터소스 이해 커넥션풀과 데이터소스 이해 커넥션풀이 왜 필요할까? 아래의 코드와 같이 데이터베이스에 접근하는 커넥션을 생성하여 가져올 때 DriverManager.getConnection()을 호출하면 된다. public static Connection getConnection(){ try { Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD); log.info("get connection = {}, class = {}", connection, connection.getClass()); return connection; } catch (SQLException e) { throw new IllegalStateException(); } .. 더보기 이전 1 다음