Obsidian/Recognition/Work Related/프로젝트/스마트계류장/Java PGM/Components/DB/ReadMe.md

34 lines
811 B
Markdown
Raw Normal View History

2023-11-10 09:11:26 +00:00
### Tibero
![[tibero-jdbc-7.jar]]
- jar 파일 -> 프로젝트 폴더/lib 하위에 복사
- pom.xml dependency 추가
```xml
<!-- Database -->
<dependency>
<groupId>com.tmax.tibero</groupId>
<artifactId>tibero-jdbc</artifactId>
<version>7</version>
<scope>system</scope>
<systemPath>${basedir}/lib/tibero-jdbc-7.jar</systemPath>
</dependency>
```
- applicaton.yml 설정추가
```yml
database:
db1:
datasource:
driver-class-name: com.tmax.tibero.jdbc.TbDriver
jdbcUrl: jdbc:tibero:thin:@10.200.31.1:8629:sacp
username: ueai
password: ueai
db2:
datasource:
driver-class-name: com.tmax.tibero.jdbc.TbDriver
jdbcUrl: jdbc:tibero:thin:@10.200.31.1:8629:sacp
username: ucm
password: ucm
```