|
@@ -23,37 +23,39 @@ eureka.client.serviceUrl.defaultZone=http://192.168.1.222:1111/eureka/
|
|
|
dsurl.host=192.168.0.54
|
|
|
dsurl.port=3306
|
|
|
dsurl.database=examcloud_dengbao
|
|
|
-spring.datasource.username=examcloud_dengbao
|
|
|
-spring.datasource.password=examcloud_dengbao_123
|
|
|
|
|
|
-spring.datasource.url=jdbc:mysql://${dsurl.host}:${dsurl.port}/${dsurl.database}?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&rewriteBatchedStatements=true
|
|
|
-spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
|
-spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
|
|
|
+spring.shardingsphere.datasource.name=master
|
|
|
+spring.shardingsphere.datasource.master.username=examcloud_dengbao
|
|
|
+spring.shardingsphere.datasource.master.password=examcloud_dengbao_123
|
|
|
+
|
|
|
+spring.shardingsphere.datasource.master.url=jdbc:mysql://${dsurl.host}:${dsurl.port}/${dsurl.database}?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&rewriteBatchedStatements=true
|
|
|
+spring.shardingsphere.datasource.master.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
|
+spring.shardingsphere.datasource.master.type=com.alibaba.druid.pool.DruidDataSource
|
|
|
|
|
|
#druid
|
|
|
-spring.datasource.druid.initial-size=10
|
|
|
-spring.datasource.druid.min-idle=10
|
|
|
-spring.datasource.druid.max-active=350
|
|
|
-spring.datasource.druid.max-wait=3000
|
|
|
-spring.datasource.druid.validation-query=SELECT 1
|
|
|
-spring.datasource.druid.validation-query-timeout=2000
|
|
|
-spring.datasource.druid.test-on-borrow=false
|
|
|
-spring.datasource.druid.test-on-return=false
|
|
|
-spring.datasource.druid.test-while-idle=true
|
|
|
-spring.datasource.druid.time-between-eviction-runs-millis=60000
|
|
|
-spring.datasource.druid.min-evictable-idle-time-millis=300000
|
|
|
-spring.datasource.druid.filters=config,wall,stat
|
|
|
-spring.datasource.druid.connectionProperties=druid.stat.slowSqlMillis=200;druid.stat.logSlowSql=true;config.decrypt=false
|
|
|
-spring.datasource.druid.web-stat-filter.enabled=true
|
|
|
-spring.datasource.druid.web-stat-filter.url-pattern=/*
|
|
|
-spring.datasource.druid.web-stat-filter.exclusions=/druid/*,*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico
|
|
|
-spring.datasource.druid.web-stat-filter.session-stat-enable=true
|
|
|
-spring.datasource.druid.web-stat-filter.session-stat-max-count=10
|
|
|
-spring.datasource.druid.stat-view-servlet.enabled=true
|
|
|
-spring.datasource.druid.stat-view-servlet.url-pattern=/druid/*
|
|
|
-spring.datasource.druid.stat-view-servlet.reset-enable=true
|
|
|
-spring.datasource.druid.stat-view-servlet.login-username=admin
|
|
|
-spring.datasource.druid.stat-view-servlet.login-password=admin
|
|
|
+spring.shardingsphere.datasource.master.initial-size=10
|
|
|
+spring.shardingsphere.datasource.master.min-idle=10
|
|
|
+spring.shardingsphere.datasource.master.max-active=350
|
|
|
+spring.shardingsphere.datasource.master.max-wait=3000
|
|
|
+spring.shardingsphere.datasource.master.validation-query=SELECT 1
|
|
|
+spring.shardingsphere.datasource.master.validation-query-timeout=2000
|
|
|
+spring.shardingsphere.datasource.master.test-on-borrow=false
|
|
|
+spring.shardingsphere.datasource.master.test-on-return=false
|
|
|
+spring.shardingsphere.datasource.master.test-while-idle=true
|
|
|
+spring.shardingsphere.datasource.master.time-between-eviction-runs-millis=60000
|
|
|
+spring.shardingsphere.datasource.master.min-evictable-idle-time-millis=300000
|
|
|
+spring.shardingsphere.datasource.master.filters=config,wall,stat
|
|
|
+spring.shardingsphere.datasource.master.connectionProperties=druid.stat.slowSqlMillis=200;druid.stat.logSlowSql=true;config.decrypt=false
|
|
|
+spring.shardingsphere.datasource.master.web-stat-filter.enabled=true
|
|
|
+spring.shardingsphere.datasource.master.web-stat-filter.url-pattern=/*
|
|
|
+spring.shardingsphere.datasource.master.web-stat-filter.exclusions=/druid/*,*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico
|
|
|
+spring.shardingsphere.datasource.master.web-stat-filter.session-stat-enable=true
|
|
|
+spring.shardingsphere.datasource.master.web-stat-filter.session-stat-max-count=10
|
|
|
+spring.shardingsphere.datasource.master.stat-view-servlet.enabled=true
|
|
|
+spring.shardingsphere.datasource.master.stat-view-servlet.url-pattern=/druid/*
|
|
|
+spring.shardingsphere.datasource.master.stat-view-servlet.reset-enable=true
|
|
|
+spring.shardingsphere.datasource.master.stat-view-servlet.login-username=admin
|
|
|
+spring.shardingsphere.datasource.master.stat-view-servlet.login-password=admin
|
|
|
|
|
|
spring.redis.host=192.168.0.64
|
|
|
spring.redis.port=6379
|
|
@@ -127,3 +129,35 @@ $rocketmq-accesskey=accesskey
|
|
|
$rocketmq-secretkey=secretkey
|
|
|
$rocketmq-namesrv-addr=192.168.10.230:9876
|
|
|
|
|
|
+# shardingsphere table config
|
|
|
+spring.shardingsphere.encrypt.encryptors.encryptor_aes.type=aes
|
|
|
+spring.shardingsphere.encrypt.encryptors.encryptor_aes.props.aes.key.value=Qmth@87863577
|
|
|
+spring.shardingsphere.props.query.with.cipher.column=true
|
|
|
+spring.shardingsphere.props.sql.show=false
|
|
|
+
|
|
|
+spring.shardingsphere.encrypt.tables.ec_b_student.columns.identity_number.cipherColumn=identity_number
|
|
|
+spring.shardingsphere.encrypt.tables.ec_b_student.columns.identity_number.encryptor=encryptor_aes
|
|
|
+spring.shardingsphere.encrypt.tables.ec_b_student.columns.name.cipherColumn=name
|
|
|
+spring.shardingsphere.encrypt.tables.ec_b_student.columns.name.encryptor=encryptor_aes
|
|
|
+spring.shardingsphere.encrypt.tables.ec_b_student.columns.phone_number.cipherColumn=phone_number
|
|
|
+spring.shardingsphere.encrypt.tables.ec_b_student.columns.phone_number.encryptor=encryptor_aes
|
|
|
+spring.shardingsphere.encrypt.tables.ec_b_student.columns.security_phone.cipherColumn=security_phone
|
|
|
+spring.shardingsphere.encrypt.tables.ec_b_student.columns.security_phone.encryptor=encryptor_aes
|
|
|
+
|
|
|
+spring.shardingsphere.encrypt.tables.ec_b_student_code.columns.identity_number.cipherColumn=identity_number
|
|
|
+spring.shardingsphere.encrypt.tables.ec_b_student_code.columns.identity_number.encryptor=encryptor_aes
|
|
|
+
|
|
|
+spring.shardingsphere.encrypt.tables.ec_e_exam_student.columns.identity_number.cipherColumn=identity_number
|
|
|
+spring.shardingsphere.encrypt.tables.ec_e_exam_student.columns.identity_number.encryptor=encryptor_aes
|
|
|
+spring.shardingsphere.encrypt.tables.ec_e_exam_student.columns.name.cipherColumn=name
|
|
|
+spring.shardingsphere.encrypt.tables.ec_e_exam_student.columns.name.encryptor=encryptor_aes
|
|
|
+
|
|
|
+spring.shardingsphere.encrypt.tables.ec_oe_exam_student.columns.identity_number.cipherColumn=identity_number
|
|
|
+spring.shardingsphere.encrypt.tables.ec_oe_exam_student.columns.identity_number.encryptor=encryptor_aes
|
|
|
+spring.shardingsphere.encrypt.tables.ec_oe_exam_student.columns.student_name.cipherColumn=student_name
|
|
|
+spring.shardingsphere.encrypt.tables.ec_oe_exam_student.columns.student_name.encryptor=encryptor_aes
|
|
|
+
|
|
|
+spring.shardingsphere.encrypt.tables.ec_oe_exam_record_data.columns.identity_number.cipherColumn=identity_number
|
|
|
+spring.shardingsphere.encrypt.tables.ec_oe_exam_record_data.columns.identity_number.encryptor=encryptor_aes
|
|
|
+spring.shardingsphere.encrypt.tables.ec_oe_exam_record_data.columns.student_name.cipherColumn=student_name
|
|
|
+spring.shardingsphere.encrypt.tables.ec_oe_exam_record_data.columns.student_name.encryptor=encryptor_aes
|