神通数据库连接

main
yangmengchuan 1 week ago
parent f6dfaf93e1
commit d91a3174f4
  1. 4
      pom.xml
  2. 28
      src/main/resources/application.yml

@ -75,11 +75,11 @@
<version>1.6.14</version>
</dependency>
<!-- 神通数据库-->
<!-- <dependency>
<dependency>
<groupId>com.stdb</groupId>
<artifactId>oscar-jdbc</artifactId>
<version>1.0</version>
</dependency>-->
</dependency>
<!-- oracle数据库-->
<dependency>
<groupId>com.oracle.database.jdbc</groupId>

@ -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:

Loading…
Cancel
Save