Obsidian/Recognition/Work Related/프로젝트/스마트계류장/Java PGM/Components/DB
MonHun 6e72309cb6 win 1110 2023-11-10 18:11:26 +09:00
..
ReadMe.md win 1110 2023-11-10 18:11:26 +09:00

ReadMe.md

Tibero

!tibero-jdbc-7.jar

  • jar 파일 -> 프로젝트 폴더/lib 하위에 복사
  • pom.xml dependency 추가
<!-- 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 설정추가

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