refactor: sqlserver 适配

This commit is contained in:
Kelvin 2024-11-27 20:41:39 +08:00
parent 4941a50de5
commit e21e66b291
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@
<dependency> <dependency>
<groupId>com.microsoft.sqlserver</groupId> <groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId> <artifactId>mssql-jdbc</artifactId>
<version>12.2.0.jre8</version> <version>12.4.2.jre8</version>
</dependency> </dependency>
</dependencies> </dependencies>

View File

@ -16,7 +16,7 @@ spring:
# 从数据源开关/默认关闭 # 从数据源开关/默认关闭
enabled: true enabled: true
driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver
url: jdbc:sqlserver://192.168.8.68:1433;DatabaseName=DPG_RH_YQ_20240711;encrypt=true;trustServerCertificate=true url: jdbc:sqlserver://192.168.8.68:1433;DatabaseName=DPG_RH_YQ_20240711;encrypt=false;trustServerCertificate=true;
username: sa username: sa
password: rh123456 password: rh123456
# 初始连接数 # 初始连接数