250x250
Notice
Recent Posts
Recent Comments
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Spring Boot
- 설정
- MSSQL
- Exception
- AJAX
- Eclipse
- error
- MySQL
- STS
- Core Java
- ubuntu
- Source
- Open Source
- Tomcat
- myBatis
- PostgreSQL
- JavaScript
- git
- jpa
- SpringBoot
- JDBC
- Python
- IntelliJ
- 오픈소스
- Thymeleaf
- Docker
- spring
- oracle
- maven
- 문서
Archives
- Today
- Total
헤르메스 LIFE
[DataSource] DataSource 사용시 DB연결 끊어졌을 경우 에러방지 설정 본문
728x90
네트워크 끊어지거나 DB 리스타트로 커넥션이 유효하지 않게 된다.
이럴경우 커넥션 연결 오류가 나는데 이를 방지 하는 옵션은
<property name="validationQuery" value="SELECT 1 FROM DUAL"/>
#설정예#
728x90
'Spring Framework' 카테고리의 다른 글
| [MyBatis] MyBatis Wiki (0) | 2012.06.12 |
|---|---|
| [MyBatis] mybatis config xml 예제 (1) | 2012.06.04 |
| [DataSource] org.apache.commons.dbcp.BasicDataSource 사용해서 DataSource 설정 (0) | 2012.05.31 |
| [MyBatis] ServletContextListener를 이용한 Application 시작 시 MyBatis 초기화 (0) | 2012.05.25 |
| [Log4j] Common-Logging의 문제점. (0) | 2012.05.22 |