Commit 5b536f1e by wenyang

dev环境数据库链接配置

parent b412f5e7
......@@ -6,7 +6,7 @@ mybatis.mapper-locations=classpath:mapper/**/*.xml
###spring boot自动配置单数据源###
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
## 服务端开启SSL,配置证书,客户端连服务端,配置双向验证服务端证书和客户端证书
ssl.cert.path=E\:/workspace/yd-backend/yd-api/src/main/resources/mysqlSSL
ssl.cert.path=D\:/ydProjectGit/yd-backend/yd-api/src/main/resources/mysqlSSL
ssl.config=&allowMultiQueries=true&autoReconnect=true&clientCertificateKeyStoreUrl=file:${ssl.cert.path}/keystoreAJB.jks&clientCertificateKeyStorePassword=AJBMysqlSSL@Pass1&trustCertificateKeyStoreUrl=file:${ssl.cert.path}/truststoreAJB.jks&trustCertificateKeyStorePassword=AJBMysqlSSL@Pass1
spring.datasource.url=jdbc:mysql://139.224.139.2:13307/ajb?useUnicode=true&characterEncoding=utf8&useAffectedRows=true&useSSL=true&requireSSL=true&verifyServerCertificate=true${ssl.config}
......@@ -30,7 +30,7 @@ spring.datasource.druid.stat-view-servlet.enabled=false
#master
multiple.datasource.master.driver-class-name=com.mysql.jdbc.Driver
## 服务端开启SSL,配置证书,客户端连服务端,配置双向验证服务端证书和客户端证书
ssl.cert.master.path=E\:/workspace/yd-backend/yd-api/src/main/resources/mysqlSSL
ssl.cert.master.path=D\:/ydProjectGit/yd-backend/yd-api/src/main/resources/mysqlSSL
ssl.master.config=&allowMultiQueries=true&autoReconnect=true&clientCertificateKeyStoreUrl=file:${ssl.cert.master.path}/keystoreAJB.jks&clientCertificateKeyStorePassword=AJBMysqlSSL@Pass1&trustCertificateKeyStoreUrl=file:${ssl.cert.master.path}/truststoreAJB.jks&trustCertificateKeyStorePassword=AJBMysqlSSL@Pass1
multiple.datasource.master.url=jdbc:mysql://139.224.139.2:13307/ajb?useUnicode=true&characterEncoding=utf8&useAffectedRows=true&useSSL=true&requireSSL=true&verifyServerCertificate=true${ssl.master.config}
......@@ -38,7 +38,7 @@ multiple.datasource.master.url=jdbc:mysql://139.224.139.2:13307/ajb?useUnicode=t
## 服务端开启SSL,配置证书,客户端连服务端,直接信任证书,不用配置证书
#spring.datasource.url=jdbc:mysql://139.224.139.2:13307/ajb?useUnicode=true&characterEncoding=utf8&useAffectedRows=true&useSSL=true&requireSSL=true&verifyServerCertificate=false
multiple.datasource.master.username=devdbuserSSL
multiple.datasource.master.password=devdbpass1SSL
multiple.datasource.master.password=devDB@userSSL2021
#服务端开启SSL之前的配置
#multiple.datasource.master.url=jdbc:mysql://139.224.139.2:13307/ajb?useUnicode=true&characterEncoding=utf8&useSSL=false&useAffectedRows=true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment