From f6def61809e67bbf475f4341decf6e2a7178b57c Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Wed, 27 Dec 2023 14:21:13 +0900 Subject: [PATCH] =?UTF-8?q?oracle=20jdbc=20driver=20=EC=B6=94=EA=B0=80,=20?= =?UTF-8?q?B14=20mapper=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 6 ++++++ src/main/resources/application.yml | 14 +++++++------- .../sql/mapper/lntris/lntris-B13_16-mapper.xml | 6 +++--- 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index 403cadc..42e3bf5 100644 --- a/pom.xml +++ b/pom.xml @@ -43,6 +43,12 @@ xit-lntris-special 23.04.01-SNAPSHOT + + + com.oracle.database.jdbc + ojdbc8 + + diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 18227e1..30d055f 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -27,17 +27,17 @@ spring: allow-bean-definition-overriding: true sql: init: - platform: mariadb + platform: mariadb 또는 oracle(해당 내용만 지정) datasource: hikari: driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy - jdbc-url: jdbc:log4jdbc:mariadb://105.20.1.125:53306/cleanparking?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false&autocommit=false - username: root - password: xit5811807 -# jdbc-url: jdbc:log4jdbc:mariadb://211.119.124.9:4407/platform?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false&autocommit=false -# username: fimsweb -# password: fimsweb!@ +# MariaDB + jdbc-url: jdbc:log4jdbc:mariadb://호스트:포트/DB이름?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Seoul&useSSL=false&autocommit=false +# Oracle +# jdbc-url: jdbc:log4jdbc:oracle:thin:@호스트:포트:SID + username: 사용자 아이디 + password: 사용자 비밀번호 auto-commit: false mvc: diff --git a/src/main/resources/sql/mapper/lntris/lntris-B13_16-mapper.xml b/src/main/resources/sql/mapper/lntris/lntris-B13_16-mapper.xml index 8532376..0ef1cc3 100644 --- a/src/main/resources/sql/mapper/lntris/lntris-B13_16-mapper.xml +++ b/src/main/resources/sql/mapper/lntris/lntris-B13_16-mapper.xml @@ -661,8 +661,8 @@ INSERT INTO TB_NIS_SPCL_B14RV ( , RGTR , MDFCN_DT , MDFR -) VALUES ( - #{resp.b14Id} +) +SELECT #{resp.b14Id} , #{resp.b14Sn} , #{resp.sgbCd} , #{resp.sgbNm} @@ -770,7 +770,7 @@ INSERT INTO TB_NIS_SPCL_B14RV ( , #{currentUser.id} , , #{currentUser.id} -) + FROM DUAL