9e238f4006a61d499f7c53c882d64df1a10b122e
\347\224\250DBeaver\345\256\242\346\210\267\347\253\257\350\277\236\346\216\245\351\253\230\346\226\257\346\225\260\346\215\256\345\272\223.md
... | ... | @@ -118,3 +118,44 @@ connectionProperties:druid.stat.sql.MaxSize=100; |
118 | 118 | |
119 | 119 | ``` |
120 | 120 | |
121 | + |
|
122 | +### 7. GaussDB环境配置示例 |
|
123 | + |
|
124 | +**1. dbcp.properties 示例:** |
|
125 | +```properties |
|
126 | + |
|
127 | +########DBCP########## |
|
128 | +initialSize=5 |
|
129 | +maxActive=1000 |
|
130 | +minIdle=5 |
|
131 | +filters=stat |
|
132 | +maxWait=6000 |
|
133 | +timeBetweenEvictionRunsMillis=60000 |
|
134 | +minEvictableIdleTimeMillis=1800000 |
|
135 | +testOnBorrow=false |
|
136 | +testOnReturn=false |
|
137 | +testWhileIdle=true |
|
138 | +poolPreparedStatements: true |
|
139 | +maxOpenPreparedStatements: 20 |
|
140 | +connectionProperties:druid.stat.sql.MaxSize=100; |
|
141 | +keepAlive=true |
|
142 | + |
|
143 | + |
|
144 | +########gaussdb######## |
|
145 | +driverClassName=com.huawei.gaussdb.jdbc.Driver |
|
146 | +url=jdbc:gaussdb://127.0.0.1:8000,127.0.0.1:8000,127.0.0.1:8000/tpcc?currentSchema=snest_jichen&autoBalance=true&refreshCNIpListTime=3&prepareThreshold=1&batchMode=on&fetchsize=10&loggerLevel=OFF |
|
147 | +username=****** |
|
148 | +password=****** |
|
149 | +validationQuery=SELECT 1 |
|
150 | +gaussdbDeployment=Distributed |
|
151 | + |
|
152 | +``` |
|
153 | + |
|
154 | + |
|
155 | +**2. spring配置文件添加参数适配高斯自定义SQL列字段别名转换** |
|
156 | + |
|
157 | +application-dev.properties添加: |
|
158 | +``` |
|
159 | +orm.sql.wrap_camelcase_alias=true |
|
160 | + |
|
161 | +``` |
|
... | ... | \ No newline at end of file |