Commit 17082cb0c45ca4c46694718f845ea02890fe20bc
1 parent
78febec8
feat(*): 参数优化
- 参数优化
Showing
5 changed files
with
6 additions
and
6 deletions
fw-shirasawa-server/src/main/resources/application-dev.yml
... | ... | @@ -23,4 +23,4 @@ task: |
23 | 23 | switch: 'on' |
24 | 24 | |
25 | 25 | p6spy-db: |
26 | - url: jdbc:p6spy:mysql://192.168.0.234:3306/fw_shirasawa?characterEncoding=UTF-8&useSSL=false | |
27 | 26 | \ No newline at end of file |
27 | + url: jdbc:p6spy:mysql://192.168.0.234:3306/fw_shirasawa?characterEncoding=UTF-8&useSSL=false&useUnicode=true&autoReconnect=true&rewriteBatchedStatements=true&allowMultiQueries=true&useServerPrepStmts=true&cachePrepStmts=true | |
28 | 28 | \ No newline at end of file | ... | ... |
fw-shirasawa-server/src/main/resources/application-gray.yml
... | ... | @@ -9,7 +9,7 @@ spring: |
9 | 9 | server-addr: 192.168.0.91:8848 |
10 | 10 | datasource: |
11 | 11 | password: Feewee_Data2_Root123 |
12 | - url: jdbc:mysql://192.168.0.102:3306/fw_shirasawa?characterEncoding=UTF-8&useSSL=false | |
12 | + url: jdbc:mysql://192.168.0.102:3306/fw_shirasawa?characterEncoding=UTF-8&useSSL=false&useUnicode=true&autoReconnect=true&rewriteBatchedStatements=true&allowMultiQueries=true&useServerPrepStmts=true&cachePrepStmts=true | |
13 | 13 | username: root |
14 | 14 | redis: |
15 | 15 | host: 192.168.0.101 | ... | ... |
fw-shirasawa-server/src/main/resources/application-prd.yml
... | ... | @@ -9,7 +9,7 @@ spring: |
9 | 9 | server-addr: 192.168.0.91:8848 |
10 | 10 | datasource: |
11 | 11 | password: Feewee_Data2_Root123 |
12 | - url: jdbc:mysql://192.168.0.102:3306/fw_shirasawa?characterEncoding=UTF-8&useSSL=false | |
12 | + url: jdbc:mysql://192.168.0.102:3306/fw_shirasawa?characterEncoding=UTF-8&useSSL=false&useUnicode=true&autoReconnect=true&rewriteBatchedStatements=true&allowMultiQueries=true&useServerPrepStmts=true&cachePrepStmts=true | |
13 | 13 | username: root |
14 | 14 | redis: |
15 | 15 | host: 192.168.0.101 | ... | ... |
fw-shirasawa-server/src/main/resources/application-test.yml
... | ... | @@ -10,7 +10,7 @@ spring: |
10 | 10 | namespace: 0ba6d5d6-2a49-4086-b6c3-dbeec01c61a4 |
11 | 11 | datasource: |
12 | 12 | password: mysql@pwd123 |
13 | - url: jdbc:mysql://172.26.154.169:3301/fw_shirasawa?characterEncoding=UTF-8&useSSL=false | |
13 | + url: jdbc:mysql://172.26.154.169:3301/fw_shirasawa?characterEncoding=UTF-8&useSSL=false&useUnicode=true&autoReconnect=true&rewriteBatchedStatements=true&allowMultiQueries=true&useServerPrepStmts=true&cachePrepStmts=true | |
14 | 14 | username: test |
15 | 15 | redis: |
16 | 16 | host: 172.26.154.169 |
... | ... | @@ -51,7 +51,7 @@ task: |
51 | 51 | switch: 'on' |
52 | 52 | |
53 | 53 | p6spy-db: |
54 | - url: jdbc:p6spy:mysql://172.26.154.169:3301/fw_shirasawa?characterEncoding=UTF-8&useSSL=false | |
54 | + url: jdbc:p6spy:mysql://172.26.154.169:3301/fw_shirasawa?characterEncoding=UTF-8&useSSL=false&useUnicode=true&autoReconnect=true&rewriteBatchedStatements=true&allowMultiQueries=true&useServerPrepStmts=true&cachePrepStmts=true | |
55 | 55 | |
56 | 56 | follow: |
57 | 57 | retry: false | ... | ... |
fw-shirasawa-server/src/main/resources/application.yml
... | ... | @@ -29,7 +29,7 @@ spring: |
29 | 29 | connection-test-query: SELECT 1 FROM DUAL |
30 | 30 | maximum-pool-size: 30 |
31 | 31 | password: mysql@pwd123 |
32 | - url: jdbc:mysql://192.168.0.234:3306/fw_shirasawa?characterEncoding=UTF-8&useSSL=false | |
32 | + url: jdbc:mysql://192.168.0.234:3306/fw_shirasawa?characterEncoding=UTF-8&useSSL=false&useUnicode=true&autoReconnect=true&rewriteBatchedStatements=true&allowMultiQueries=true&useServerPrepStmts=true&cachePrepStmts=true | |
33 | 33 | username: root |
34 | 34 | jackson: |
35 | 35 | default-property-inclusion: non_null | ... | ... |