문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
java:jdbc [2017/12/21 13:05] kwon37xi |
java:jdbc [2021/02/16 18:24] (현재) kwon37xi [SQL Logging] |
||
---|---|---|---|
줄 7: | 줄 7: | ||
* [[http:// | * [[http:// | ||
+ | ===== Timeout ===== | ||
+ | * DB 연결 설정에서 Timeout은 매우 중요한 부분임. 모두 설정하고 의미 숙지 | ||
+ | * [[http:// | ||
+ | * connection timeout | ||
+ | * socket timeout | ||
+ | * statement timeout(query timeout) | ||
+ | * 각 Connection Pool에서 커넥션을 가져오는 최대 대기시간 설정도 꼭 해준다. connection timeout보다 약간 더 길게 하면 될까? | ||
===== 편리 라이브러리 ===== | ===== 편리 라이브러리 ===== | ||
* [[java: | * [[java: | ||
줄 13: | 줄 20: | ||
* [[springframework: | * [[springframework: | ||
* [[java: | * [[java: | ||
+ | * [[java: | ||
+ | |||
===== SQL Logging ===== | ===== SQL Logging ===== | ||
+ | * 대부분의 JDBC Driver는 자체적으로 logging 기능을 끄고 켤 수 있는 경우가 많다. | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | * [[https:// | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * [[java: | ||
===== Db 접속 테스트. 가장 기본 JDBC 접속 및 쿼리 ===== | ===== Db 접속 테스트. 가장 기본 JDBC 접속 및 쿼리 ===== | ||
<code java> | <code java> | ||
줄 57: | 줄 68: | ||
</ | </ | ||
+ | * Java 6, JDBC 4.0 부터는 '' | ||
===== JDBC Driver ===== | ===== JDBC Driver ===== | ||
줄 153: | 줄 165: | ||
* [[https:// | * [[https:// | ||
* [[http:// | * [[http:// | ||
+ | * [[https:// |