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
a000228d
Commit
a000228d
authored
Nov 03, 2021
by
hongzhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
等保调整:mysql密码复杂度
parent
cd72645e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
yd-api/src/main/resources/application-dev.properties
+4
-3
yd-api/src/main/resources/application-local.properties
+5
-5
No files found.
yd-api/src/main/resources/application-dev.properties
View file @
a000228d
...
@@ -6,14 +6,14 @@ mybatis.mapper-locations=classpath:mapper/**/*.xml
...
@@ -6,14 +6,14 @@ mybatis.mapper-locations=classpath:mapper/**/*.xml
###spring boot自动配置单数据源###
###spring boot自动配置单数据源###
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
## 服务端开启SSL,配置证书,客户端连服务端,配置双向验证服务端证书和客户端证书
## 服务端开启SSL,配置证书,客户端连服务端,配置双向验证服务端证书和客户端证书
ssl.cert.path
=
/var/lib/mysql/ssl
ssl.cert.path
=
E
\:
/workspace/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
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}
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}
## 服务端开启SSL,配置证书,客户端连服务端,直接信任证书,不用配置证书
## 服务端开启SSL,配置证书,客户端连服务端,直接信任证书,不用配置证书
#spring.datasource.url=jdbc:mysql://139.224.139.2:13307/ajb?useUnicode=true&characterEncoding=utf8&useAffectedRows=true&useSSL=true&requireSSL=true&verifyServerCertificate=false
#spring.datasource.url=jdbc:mysql://139.224.139.2:13307/ajb?useUnicode=true&characterEncoding=utf8&useAffectedRows=true&useSSL=true&requireSSL=true&verifyServerCertificate=false
spring.datasource.username
=
devdbuserSSL
spring.datasource.username
=
devdbuserSSL
spring.datasource.password
=
dev
dbpass1SSL
spring.datasource.password
=
dev
DB@userSSL2021
#服务端开启SSL之前的配置
#服务端开启SSL之前的配置
#spring.datasource.url=jdbc:mysql://139.224.139.2:13307/ajb?useUnicode=true&characterEncoding=utf8&useSSL=false&useAffectedRows=true
#spring.datasource.url=jdbc:mysql://139.224.139.2:13307/ajb?useUnicode=true&characterEncoding=utf8&useSSL=false&useAffectedRows=true
...
@@ -30,7 +30,8 @@ spring.datasource.druid.stat-view-servlet.enabled=false
...
@@ -30,7 +30,8 @@ spring.datasource.druid.stat-view-servlet.enabled=false
#master
#master
multiple.datasource.master.driver-class-name
=
com.mysql.jdbc.Driver
multiple.datasource.master.driver-class-name
=
com.mysql.jdbc.Driver
## 服务端开启SSL,配置证书,客户端连服务端,配置双向验证服务端证书和客户端证书
## 服务端开启SSL,配置证书,客户端连服务端,配置双向验证服务端证书和客户端证书
ssl.cert.master.path
=
/var/lib/mysql/ssl
ssl.cert.master.path
=
E
\:
/workspace/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
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}
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}
...
...
yd-api/src/main/resources/application-local.properties
View file @
a000228d
...
@@ -6,15 +6,15 @@ mybatis.mapper-locations=classpath:mapper/**/*.xml
...
@@ -6,15 +6,15 @@ mybatis.mapper-locations=classpath:mapper/**/*.xml
###spring boot缺省配置单数据源###
###spring boot缺省配置单数据源###
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
## 服务端开启SSL,配置证书,客户端连服务端,配置双向验证服务端证书和客户端证书
## 服务端开启SSL,配置证书,客户端连服务端,配置双向验证服务端证书和客户端证书
#ssl.cert.path=D\:/ydProjectGit
/yd-backend/yd-api/src/main/resources/mysqlSSL
ssl.cert.path
=
ssl.cert.master.path=E
\:
/workspace
/yd-backend/yd-api/src/main/resources/mysqlSSL
ssl.cert.path
=
classpath:mysqlSSL
#
ssl.cert.path=classpath: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
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}
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}
## 服务端开启SSL,配置证书,客户端连服务端,直接信任证书,不用配置证书
## 服务端开启SSL,配置证书,客户端连服务端,直接信任证书,不用配置证书
#spring.datasource.url=jdbc:mysql://139.224.139.2:13307/ajb?useUnicode=true&characterEncoding=utf8&useSSL=true&requireSSL=true&verifyServerCertificate=false
#spring.datasource.url=jdbc:mysql://139.224.139.2:13307/ajb?useUnicode=true&characterEncoding=utf8&useSSL=true&requireSSL=true&verifyServerCertificate=false
spring.datasource.username
=
devdbuserSSL
spring.datasource.username
=
devdbuserSSL
spring.datasource.password
=
dev
dbpass1SSL
spring.datasource.password
=
dev
DB@userSSL2021
#服务端开启SSL之前的配置
#服务端开启SSL之前的配置
#spring.datasource.url=jdbc:mysql://139.224.139.2:13307/ajb?useUnicode=true&characterEncoding=utf8&useSSL=false&useAffectedRows=true
#spring.datasource.url=jdbc:mysql://139.224.139.2:13307/ajb?useUnicode=true&characterEncoding=utf8&useSSL=false&useAffectedRows=true
...
@@ -30,8 +30,8 @@ spring.datasource.druid.stat-view-servlet.enabled=false
...
@@ -30,8 +30,8 @@ spring.datasource.druid.stat-view-servlet.enabled=false
#master
#master
multiple.datasource.master.driver-class-name
=
com.mysql.jdbc.Driver
multiple.datasource.master.driver-class-name
=
com.mysql.jdbc.Driver
## 服务端开启SSL,配置证书,客户端连服务端,配置双向验证服务端证书和客户端证书
## 服务端开启SSL,配置证书,客户端连服务端,配置双向验证服务端证书和客户端证书
#ssl.cert.master.path=D\:/ydProjectGit
/yd-backend/yd-api/src/main/resources/mysqlSSL
ssl.cert.master.path
=
E
\:
/workspace
/yd-backend/yd-api/src/main/resources/mysqlSSL
ssl.cert.master.path
=
classpath:mysqlSSL
#
ssl.cert.master.path=classpath: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
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}
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}
...
...
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