神通数据库连接

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> <version>1.6.14</version>
</dependency> </dependency>
<!-- 神通数据库--> <!-- 神通数据库-->
<!-- <dependency> <dependency>
<groupId>com.stdb</groupId> <groupId>com.stdb</groupId>
<artifactId>oscar-jdbc</artifactId> <artifactId>oscar-jdbc</artifactId>
<version>1.0</version> <version>1.0</version>
</dependency>--> </dependency>
<!-- oracle数据库--> <!-- oracle数据库-->
<dependency> <dependency>
<groupId>com.oracle.database.jdbc</groupId> <groupId>com.oracle.database.jdbc</groupId>

@ -2,15 +2,27 @@ spring:
application: application:
name: HTEY name: HTEY
datasource: datasource:
url: jdbc:oracle:thin:@172.16.36.140:1521:orcl url: jdbc:oscar://172.16.36.140:2003/OSRDB
username: kdhtey username: tykd
password: 123456 password: 123456
driver-class-name: oracle.jdbc.OracleDriver driver-class-name: com.oscar.Driver
# secondary: # url: jdbc:oracle:thin:@172.16.36.140:1521:orcl
# url: jdbc:oscar://172.16.36.232:2003/OSRDB # username: kdhtey
# username: tykd # password: 123456
# password: 123456 # driver-class-name: oracle.jdbc.OracleDriver
# driver-class-name: com.oscar.Driver 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日志打印
mybatis: mybatis:
configuration: configuration:

Loading…
Cancel
Save