Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- SQL
- git
- Python
- 리눅스
- 추상클래스
- group by
- docker
- oracle
- IntelliJ
- 자바
- Javascript
- mysql
- MariaDB
- analytics4
- Linux
- PostgreSQL
- 티스토리챌린지
- mssql
- 호이스팅
- 트랜잭션
- java
- JPA
- DBMS
- MongoDB
- 차이점
- 오블완
- 명령어
- rsync
- spring
- github
Archives
- Today
- Total
hanker
Spring boot - application.properties Oracle DB 설정 (properties/yml) 본문
SPRING
Spring boot - application.properties Oracle DB 설정 (properties/yml)
hanker 2024. 10. 10. 19:09반응형
pom.xml
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc8</artifactId>
<version>19.8.0.0</version>
</dependency>
1. application.properties 일 경우
# IP:PORT:SID
spring.datasource.url=jdbc:oracle:thin:@localhost:1521:orcl
# ID
spring.datasource.username=hanker
# PW
spring.datasource.password=hanker
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
# HikariCP 커넥션 풀 설정 (기본값)
spring.datasource.hikari.maximum-pool-size=10
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.Oracle12cDialect
2. application.yml 일 경우
spring:
datasource:
url: jdbc:oracle:thin:@localhost:1521:orcl # IP:PORT:SID
username: hanker
password: hanker
driver-class-name: oracle.jdbc.OracleDriver
hikari:
maximum-pool-size: 10
jpa:
hibernate:
ddl-auto: update
properties:
hibernate:
dialect: org.hibernate.dialect.Oracle12cDialect
끝.
반응형
'SPRING' 카테고리의 다른 글
Spring - JPA EntityManager 완벽 정복 (0) | 2024.10.23 |
---|---|
Spring - 프로시저 롤백처리 방법에 관해(TransactionAspectSupport.currentTransactionStatus().setRollbackOnly()) (0) | 2024.10.16 |
Spring - excel to csv 파일 변환 (한글 깨짐 문제 완벽 해결) (0) | 2024.10.06 |
Spring Boot - 메서드 호출 전/후 로깅 (AOP) (0) | 2024.10.04 |
Spring boot - application.properties MSSQL DB 설정 (2) | 2024.09.29 |