Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
5b536f1e
Commit
5b536f1e
authored
Jan 19, 2022
by
wenyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev环境数据库链接配置
parent
b412f5e7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
yd-api/src/main/resources/application-dev.properties
+3
-3
No files found.
yd-api/src/main/resources/application-dev.properties
View file @
5b536f1e
...
...
@@ -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
=
dev
dbpass1SSL
multiple.datasource.master.password
=
dev
DB@userSSL2021
#服务端开启SSL之前的配置
#multiple.datasource.master.url=jdbc:mysql://139.224.139.2:13307/ajb?useUnicode=true&characterEncoding=utf8&useSSL=false&useAffectedRows=true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment