1. 增加 SQL Server 支持

This commit is contained in:
黄昕 2023-08-09 10:10:30 +08:00
parent cf42bfe56c
commit ba18d9d06a
4 changed files with 13 additions and 2 deletions

1
.gitignore vendored
View File

@ -31,3 +31,4 @@ build/
### VS Code ### ### VS Code ###
.vscode/ .vscode/
/logs/*.log

View File

@ -2,12 +2,17 @@ server.port=9276
server.servlet.context-path=/tunnel server.servlet.context-path=/tunnel
# mysql # mysql
spring.datasource.url=jdbc:mysql://101.35.234.160:32306/beidou?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior\ spring.datasource.url=jdbc:mysql://101.35.234.160:32306/beidou?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useUnicode=true
=convertToNull&useUnicode=true
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.username=cmhi spring.datasource.username=cmhi
spring.datasource.password=cmHi10086! spring.datasource.password=cmHi10086!
# SQL Server
#spring.datasource.url=jdbc:sqlserver://localhost:1433;database=BeiDouDataBase;integratedSecurity=true;encrypt=true;trustServerCertificate=true
#spring.datasource.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver
#spring.datasource.username=sa
#spring.datasource.password=sa123456
#spring.datasource.type=org.apache.commons.dbcp2.BasicDataSource #spring.datasource.type=org.apache.commons.dbcp2.BasicDataSource
spring.datasource.dbcp2.max-total=128 spring.datasource.dbcp2.max-total=128
spring.datasource.dbcp2.max-wait-millis=10000 spring.datasource.dbcp2.max-wait-millis=10000

View File

@ -70,6 +70,11 @@
<artifactId>mapper-spring-boot-starter</artifactId> <artifactId>mapper-spring-boot-starter</artifactId>
<version>4.2.3</version> <version>4.2.3</version>
</dependency> </dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>12.4.0.jre11</version>
</dependency>
</dependencies> </dependencies>
<build> <build>

Binary file not shown.