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 | 29 | 30 |
Tags
- IntelliJ
- 프로시저
- git branch 삭제
- git pat
- ==
- spring
- repository
- JPA
- MariaDB
- 자동배포
- java
- chown
- git
- 애널리틱스4
- 티스토리챌린지
- jetbrain
- ci/cd
- db종류
- Python
- 트랜잭션
- Jenkins
- docker
- gtihub
- analytics4
- EntityManager
- exe
- pat발급
- 오블완
- JPQL
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 |