生产环境配置。

product
BAWEI 2 years ago
parent c94d035644
commit b96f371a4c

@ -44,7 +44,7 @@ spring:
host: 222.71.165.188
port: 6379
password: qweasd,.123
timeout: 3000 #超时时间(单位:秒)
timeout: 8000 #超时时间(单位:秒)
lettuce: #Lettuce为Redis的Java驱动包
pool:
max-active: 8 # 连接池最大连接数

@ -17,11 +17,11 @@ spring:
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure #排除自动配置手动配置druid
datasource:
db-type: MySQL #数据库类型(可选值 MySQL、SQLServer、Oracle、DM8、KingbaseES、PostgreSQL请严格按可选值填写)
host: 192.168.0.10
port: 3306
username: java_boot_test
password: pBx5HaW6WMGSTdDf
db-name: java_boot_test
host: 222.71.165.188
port: 3309
username: root
password: qawsed,.123
db-name: sc-product
db-schema: #金仓达梦选填
prepare-url: #自定义url
@ -41,9 +41,9 @@ spring:
#===================== Redis配置 =====================
redis:
database: 1 #缓存库编号
host: 127.0.0.1
host: 222.71.165.188
port: 6379
password:
password: qweasd,.123
timeout: 3000 #超时时间(单位:秒)
lettuce: #Lettuce为Redis的Java驱动包
pool:

@ -199,11 +199,9 @@ public class DataInterfaceServiceImpl extends ServiceImpl<DataInterfaceMapper, D
if (page.getExcludeFields() != null && page.getExcludeFields().size() > 0) {
dataList = dataList.stream().filter(datas -> !(page.getExcludeFields().contains(datas.get("license_num")))).collect(Collectors.toList());
}
total = dataList.size();
}
//modified by 巴卫
//dataList = PageUtil.getListPage((int) page.getCurrentPage(), total , dataList);
//dataList = PageUtil.getListPage((int) page.getCurrentPage(), (int) page.getPageSize(), dataList);
/* modified by 巴卫 */
// dataList = PageUtil.getListPage((int) page.getCurrentPage(), (int) page.getPageSize(), dataList);
}
// if (StringUtil.isNotEmpty(page.getRelationField())) {
// //dataList = dataList.stream().filter(t -> page.getKeyword().equals(String.valueOf(t.get(page.getRelationField())))).collect(Collectors.toList());

Loading…
Cancel
Save