1. 增加 SQL Server 支持
This commit is contained in:
parent
cf42bfe56c
commit
ba18d9d06a
|
@ -31,3 +31,4 @@ build/
|
|||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
/logs/*.log
|
||||
|
|
|
@ -2,12 +2,17 @@ server.port=9276
|
|||
server.servlet.context-path=/tunnel
|
||||
|
||||
# mysql
|
||||
spring.datasource.url=jdbc:mysql://101.35.234.160:32306/beidou?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior\
|
||||
=convertToNull&useUnicode=true
|
||||
spring.datasource.url=jdbc:mysql://101.35.234.160:32306/beidou?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useUnicode=true
|
||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||
spring.datasource.username=cmhi
|
||||
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.dbcp2.max-total=128
|
||||
spring.datasource.dbcp2.max-wait-millis=10000
|
||||
|
|
5
pom.xml
5
pom.xml
|
@ -70,6 +70,11 @@
|
|||
<artifactId>mapper-spring-boot-starter</artifactId>
|
||||
<version>4.2.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.microsoft.sqlserver</groupId>
|
||||
<artifactId>mssql-jdbc</artifactId>
|
||||
<version>12.4.0.jre11</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue