From d91a3174f49badfaf0992ed56eef4664a3cbc4bc Mon Sep 17 00:00:00 2001 From: yangmengchuan Date: Thu, 9 Jan 2025 10:13:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A5=9E=E9=80=9A=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 4 ++-- src/main/resources/application.yml | 28 ++++++++++++++++++++-------- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/pom.xml b/pom.xml index c7ab514..daaeebc 100644 --- a/pom.xml +++ b/pom.xml @@ -75,11 +75,11 @@ 1.6.14 - + com.oracle.database.jdbc diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 7d936d9..859c747 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -2,15 +2,27 @@ spring: application: name: HTEY datasource: - url: jdbc:oracle:thin:@172.16.36.140:1521:orcl - username: kdhtey + url: jdbc:oscar://172.16.36.140:2003/OSRDB + username: tykd password: 123456 - driver-class-name: oracle.jdbc.OracleDriver -# secondary: -# url: jdbc:oscar://172.16.36.232:2003/OSRDB -# username: tykd -# password: 123456 -# driver-class-name: com.oscar.Driver + driver-class-name: com.oscar.Driver +# url: jdbc:oracle:thin:@172.16.36.140:1521:orcl +# username: kdhtey +# password: 123456 +# driver-class-name: oracle.jdbc.OracleDriver + hikari: + max-lifetime: 1800000 + idle-timeout: 600000 + connection-timeout: 30000 + maximum-pool-size: 10 + minimum-idle: 5 +# hertzbeat暴露指标接口 +management: + endpoints: + web: + exposure: + include: '*' + enabled-by-default: on #mybatis日志打印 mybatis: configuration: