初始化
This commit is contained in:
@@ -24,31 +24,28 @@ public class BannerApplicationRunner implements ApplicationRunner {
|
|||||||
log.info("\n----------------------------------------------------------\n\t" +
|
log.info("\n----------------------------------------------------------\n\t" +
|
||||||
"项目启动成功!\n\t" +
|
"项目启动成功!\n\t" +
|
||||||
"接口文档: \t{} \n\t" +
|
"接口文档: \t{} \n\t" +
|
||||||
"开发文档: \t{} \n\t" +
|
|
||||||
"视频教程: \t{} \n" +
|
|
||||||
"----------------------------------------------------------",
|
"----------------------------------------------------------",
|
||||||
"https://cloud.iocoder.cn/api-doc/",
|
"https://cloud.iocoder.cn/api-doc/"
|
||||||
"https://cloud.iocoder.cn",
|
);
|
||||||
"https://t.zsxq.com/02Yf6M7Qn");
|
|
||||||
|
|
||||||
// 数据报表
|
// // 数据报表
|
||||||
System.out.println("[报表模块 yudao-module-report 教程][参考 https://cloud.iocoder.cn/report/ 开启]");
|
// System.out.println("[报表模块 yudao-module-report 教程][参考 https://cloud.iocoder.cn/report/ 开启]");
|
||||||
// 工作流
|
// // 工作流
|
||||||
System.out.println("[工作流模块 yudao-module-bpm 教程][参考 https://cloud.iocoder.cn/bpm/ 开启]");
|
// System.out.println("[工作流模块 yudao-module-bpm 教程][参考 https://cloud.iocoder.cn/bpm/ 开启]");
|
||||||
// 商城系统
|
// // 商城系统
|
||||||
System.out.println("[商城系统 yudao-module-mall 教程][参考 https://cloud.iocoder.cn/mall/build/ 开启]");
|
// System.out.println("[商城系统 yudao-module-mall 教程][参考 https://cloud.iocoder.cn/mall/build/ 开启]");
|
||||||
// ERP 系统
|
// // ERP 系统
|
||||||
System.out.println("[ERP 系统 yudao-module-erp - 教程][参考 https://cloud.iocoder.cn/erp/build/ 开启]");
|
// System.out.println("[ERP 系统 yudao-module-erp - 教程][参考 https://cloud.iocoder.cn/erp/build/ 开启]");
|
||||||
// CRM 系统
|
// // CRM 系统
|
||||||
System.out.println("[CRM 系统 yudao-module-crm - 教程][参考 https://cloud.iocoder.cn/crm/build/ 开启]");
|
// System.out.println("[CRM 系统 yudao-module-crm - 教程][参考 https://cloud.iocoder.cn/crm/build/ 开启]");
|
||||||
// 微信公众号
|
// // 微信公众号
|
||||||
System.out.println("[微信公众号 yudao-module-mp 教程][参考 https://cloud.iocoder.cn/mp/build/ 开启]");
|
// System.out.println("[微信公众号 yudao-module-mp 教程][参考 https://cloud.iocoder.cn/mp/build/ 开启]");
|
||||||
// 支付平台
|
// // 支付平台
|
||||||
System.out.println("[支付系统 yudao-module-pay - 教程][参考 https://doc.iocoder.cn/pay/build/ 开启]");
|
// System.out.println("[支付系统 yudao-module-pay - 教程][参考 https://doc.iocoder.cn/pay/build/ 开启]");
|
||||||
// AI 大模型
|
// // AI 大模型
|
||||||
System.out.println("[AI 大模型 yudao-module-ai - 教程][参考 https://cloud.iocoder.cn/ai/build/ 开启]");
|
// System.out.println("[AI 大模型 yudao-module-ai - 教程][参考 https://cloud.iocoder.cn/ai/build/ 开启]");
|
||||||
// IOT 物联网
|
// // IOT 物联网
|
||||||
System.out.println("[IOT 物联网 yudao-module-iot - 教程][参考 https://doc.iocoder.cn/iot/build/ 开启]");
|
// System.out.println("[IOT 物联网 yudao-module-iot - 教程][参考 https://doc.iocoder.cn/iot/build/ 开启]");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
--- #################### 注册中心 + 配置中心相关配置 ####################
|
|
||||||
|
|
||||||
spring:
|
|
||||||
cloud:
|
|
||||||
nacos:
|
|
||||||
server-addr: 127.0.0.1:8848 # Nacos 服务器地址
|
|
||||||
username: # Nacos 账号
|
|
||||||
password: # Nacos 密码
|
|
||||||
discovery: # 【配置中心】配置项
|
|
||||||
namespace: dev # 命名空间。这里使用 dev 开发环境
|
|
||||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
|
||||||
config: # 【注册中心】配置项
|
|
||||||
namespace: dev # 命名空间。这里使用 dev 开发环境
|
|
||||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
|
||||||
@@ -3,9 +3,9 @@
|
|||||||
spring:
|
spring:
|
||||||
cloud:
|
cloud:
|
||||||
nacos:
|
nacos:
|
||||||
server-addr: 127.0.0.1:8848 # Nacos 服务器地址
|
server-addr: 43.139.42.137:8848 # Nacos 服务器地址
|
||||||
username: # Nacos 账号
|
username: nacos # Nacos 账号
|
||||||
password: # Nacos 密码
|
password: nacos # Nacos 密码
|
||||||
discovery: # 【配置中心】配置项
|
discovery: # 【配置中心】配置项
|
||||||
namespace: dev # 命名空间。这里使用 dev 开发环境
|
namespace: dev # 命名空间。这里使用 dev 开发环境
|
||||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
||||||
|
|||||||
@@ -1,232 +1,21 @@
|
|||||||
|
server:
|
||||||
|
port: 48080
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: gateway-server
|
name: gateway-server
|
||||||
|
|
||||||
profiles:
|
profiles:
|
||||||
active: local
|
active: local
|
||||||
|
|
||||||
main:
|
main:
|
||||||
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
|
allow-circular-references: true # 允许循环依赖,因为项目是三层架构,无法避免这个情况。
|
||||||
|
|
||||||
config:
|
config:
|
||||||
import:
|
import:
|
||||||
- optional:classpath:application-${spring.profiles.active}.yaml # 加载【本地】配置
|
- optional:classpath:application-${spring.profiles.active}.yaml # 加载【本地】配置
|
||||||
- optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml # 加载【Nacos】的配置
|
- optional:nacos:${spring.application.name}-${spring.profiles.active}.yaml # 加载【Nacos】的配置
|
||||||
|
|
||||||
cloud:
|
|
||||||
# Spring Cloud Gateway 配置项,对应 GatewayProperties 类
|
|
||||||
gateway:
|
|
||||||
# 路由配置项,对应 RouteDefinition 数组
|
|
||||||
routes:
|
|
||||||
## system-server 服务
|
|
||||||
- id: system-admin-api # 路由的编号
|
|
||||||
uri: grayLb://system-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/admin-api/system/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/admin-api/system/v3/api-docs, /v3/api-docs # 配置,保证转发到 /v3/api-docs
|
|
||||||
- id: system-app-api # 路由的编号
|
|
||||||
uri: grayLb://system-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/app-api/system/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/app-api/system/v3/api-docs, /v3/api-docs
|
|
||||||
## infra-server 服务
|
|
||||||
- id: infra-admin-api # 路由的编号
|
|
||||||
uri: grayLb://infra-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/admin-api/infra/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/admin-api/infra/v3/api-docs, /v3/api-docs
|
|
||||||
- id: infra-app-api # 路由的编号
|
|
||||||
uri: grayLb://infra-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/app-api/infra/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/app-api/infra/v3/api-docs, /v3/api-docs
|
|
||||||
- id: infra-spring-boot-admin # 路由的编号(Spring Boot Admin)
|
|
||||||
uri: grayLb://infra-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/admin/**
|
|
||||||
- id: infra-websocket # 路由的编号(WebSocket)
|
|
||||||
uri: grayLb://infra-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/infra/ws/**
|
|
||||||
## member-server 服务
|
|
||||||
- id: member-admin-api # 路由的编号
|
|
||||||
uri: grayLb://member-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/admin-api/member/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/admin-api/member/v3/api-docs, /v3/api-docs
|
|
||||||
- id: member-app-api # 路由的编号
|
|
||||||
uri: grayLb://member-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/app-api/member/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/app-api/member/v3/api-docs, /v3/api-docs
|
|
||||||
## bpm-server 服务
|
|
||||||
- id: bpm-admin-api # 路由的编号
|
|
||||||
uri: grayLb://bpm-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/admin-api/bpm/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/admin-api/bpm/v3/api-docs, /v3/api-docs
|
|
||||||
## report-server 服务
|
|
||||||
- id: report-admin-api # 路由的编号
|
|
||||||
uri: grayLb://report-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/admin-api/report/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/admin-api/report/v3/api-docs, /v3/api-docs
|
|
||||||
- id: report-jimu # 路由的编号(积木报表)
|
|
||||||
uri: grayLb://report-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/jmreport/**
|
|
||||||
## pay-server 服务
|
|
||||||
- id: pay-admin-api # 路由的编号
|
|
||||||
uri: grayLb://pay-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/admin-api/pay/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/admin-api/pay/v3/api-docs, /v3/api-docs # 配置,保证转发到 /v3/api-docs
|
|
||||||
- id: pay-app-api # 路由的编号
|
|
||||||
uri: grayLb://pay-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/app-api/pay/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/app-api/pay/v3/api-docs, /v3/api-docs
|
|
||||||
## mp-server 服务
|
|
||||||
- id: mp-admin-api # 路由的编号
|
|
||||||
uri: grayLb://mp-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/admin-api/mp/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/admin-api/mp/v3/api-docs, /v3/api-docs
|
|
||||||
## product-server 服务
|
|
||||||
- id: product-admin-api # 路由的编号
|
|
||||||
uri: grayLb://product-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/admin-api/product/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/admin-api/product/v3/api-docs, /v3/api-docs # 配置,保证转发到 /v3/api-docs
|
|
||||||
- id: product-app-api # 路由的编号
|
|
||||||
uri: grayLb://product-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/app-api/product/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/app-api/product/v3/api-docs, /v3/api-docs
|
|
||||||
## promotion-server 服务
|
|
||||||
- id: promotion-admin-api # 路由的编号
|
|
||||||
uri: grayLb://promotion-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/admin-api/promotion/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/admin-api/promotion/v3/api-docs, /v3/api-docs # 配置,保证转发到 /v3/api-docs
|
|
||||||
- id: promotion-app-api # 路由的编号
|
|
||||||
uri: grayLb://promotion-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/app-api/promotion/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/app-api/promotion/v3/api-docs, /v3/api-docs
|
|
||||||
## trade-server 服务
|
|
||||||
- id: trade-admin-api # 路由的编号
|
|
||||||
uri: grayLb://trade-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/admin-api/trade/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/admin-api/trade/v3/api-docs, /v3/api-docs # 配置,保证转发到 /v3/api-docs
|
|
||||||
- id: trade-app-api # 路由的编号
|
|
||||||
uri: grayLb://trade-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/app-api/trade/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/app-api/trade/v3/api-docs, /v3/api-docs
|
|
||||||
## statistics-server 服务
|
|
||||||
- id: statistics-admin-api # 路由的编号
|
|
||||||
uri: grayLb://statistics-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/admin-api/statistics/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/admin-api/statistics/v3/api-docs, /v3/api-docs # 配置,保证转发到 /v3/api-docs
|
|
||||||
## erp-server 服务
|
|
||||||
- id: erp-admin-api # 路由的编号
|
|
||||||
uri: grayLb://erp-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/admin-api/erp/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/admin-api/erp/v3/api-docs, /v3/api-docs # 配置,保证转发到 /v3/api-docs
|
|
||||||
## crm-server 服务
|
|
||||||
- id: crm-admin-api # 路由的编号
|
|
||||||
uri: grayLb://crm-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/admin-api/crm/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/admin-api/crm/v3/api-docs, /v3/api-docs # 配置,保证转发到 /v3/api-docs
|
|
||||||
## ai-server 服务
|
|
||||||
- id: ai-admin-api # 路由的编号
|
|
||||||
uri: grayLb://ai-server
|
|
||||||
predicates: # 断言,作为路由的匹配条件,对应 RouteDefinition 数组
|
|
||||||
- Path=/admin-api/ai/**
|
|
||||||
filters:
|
|
||||||
- RewritePath=/admin-api/ai/v3/api-docs, /v3/api-docs # 配置,保证转发到 /v3/api-docs
|
|
||||||
x-forwarded:
|
|
||||||
prefix-enabled: false # 避免 Swagger 重复带上额外的 /admin-api/system 前缀
|
|
||||||
|
|
||||||
server:
|
|
||||||
port: 48080
|
|
||||||
|
|
||||||
logging:
|
logging:
|
||||||
file:
|
file:
|
||||||
name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
|
name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
|
||||||
|
|
||||||
knife4j:
|
|
||||||
# 聚合 Swagger 文档,参考 https://doc.xiaominfo.com/docs/action/springcloud-gateway 文档
|
|
||||||
gateway:
|
|
||||||
enabled: true
|
|
||||||
routes:
|
|
||||||
- name: system-server
|
|
||||||
service-name: system-server
|
|
||||||
url: /admin-api/system/v3/api-docs
|
|
||||||
- name: infra-server
|
|
||||||
service-name: infra-server
|
|
||||||
url: /admin-api/infra/v3/api-docs
|
|
||||||
- name: member-server
|
|
||||||
service-name: member-server
|
|
||||||
url: /admin-api/member/v3/api-docs
|
|
||||||
- name: bpm-server
|
|
||||||
service-name: bpm-server
|
|
||||||
url: /admin-api/bpm/v3/api-docs
|
|
||||||
- name: pay-server
|
|
||||||
service-name: pay-server
|
|
||||||
url: /admin-api/pay/v3/api-docs
|
|
||||||
- name: mp-server
|
|
||||||
service-name: mp-server
|
|
||||||
url: /admin-api/mp/v3/api-docs
|
|
||||||
- name: product-server
|
|
||||||
service-name: product-server
|
|
||||||
url: /admin-api/product/v3/api-docs
|
|
||||||
- name: promotion-server
|
|
||||||
service-name: promotion-server
|
|
||||||
url: /admin-api/promotion/v3/api-docs
|
|
||||||
- name: trade-server
|
|
||||||
service-name: trade-server
|
|
||||||
url: /admin-api/trade/v3/api-docs
|
|
||||||
- name: statistics-server
|
|
||||||
service-name: statistics-server
|
|
||||||
url: /admin-api/statistics/v3/api-docs
|
|
||||||
- name: erp-server
|
|
||||||
service-name: erp-server
|
|
||||||
url: /admin-api/erp/v3/api-docs
|
|
||||||
- name: crm-server
|
|
||||||
service-name: crm-server
|
|
||||||
url: /admin-api/crm/v3/api-docs
|
|
||||||
- name: ai-server
|
|
||||||
service-name: ai-server
|
|
||||||
url: /admin-api/ai/v3/api-docs
|
|
||||||
|
|
||||||
--- #################### 芋道相关配置 ####################
|
--- #################### 芋道相关配置 ####################
|
||||||
|
|
||||||
tashow:
|
tashow:
|
||||||
info:
|
info:
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
|
|||||||
@@ -4,8 +4,6 @@ import com.tashow.cloud.systemapi.api.dept.dto.DeptRespDTO;
|
|||||||
import com.tashow.cloud.systemapi.enums.ApiConstants;
|
import com.tashow.cloud.systemapi.enums.ApiConstants;
|
||||||
import com.tashow.cloud.common.pojo.CommonResult;
|
import com.tashow.cloud.common.pojo.CommonResult;
|
||||||
import com.tashow.cloud.common.util.collection.CollectionUtils;
|
import com.tashow.cloud.common.util.collection.CollectionUtils;
|
||||||
import com.tashow.cloud.systemapi.enums.ApiConstants;
|
|
||||||
import com.tashow.cloud.systemapi.enums.ApiConstants;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
@@ -16,7 +14,6 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
@FeignClient(name = ApiConstants.NAME) // TODO 芋艿:fallbackFactory =
|
@FeignClient(name = ApiConstants.NAME) // TODO 芋艿:fallbackFactory =
|
||||||
@Tag(name = "RPC 服务 - 部门")
|
@Tag(name = "RPC 服务 - 部门")
|
||||||
|
|||||||
@@ -1,184 +0,0 @@
|
|||||||
--- #################### 注册中心 + 配置中心相关配置 ####################
|
|
||||||
|
|
||||||
spring:
|
|
||||||
cloud:
|
|
||||||
nacos:
|
|
||||||
server-addr: 127.0.0.1:8848 # Nacos 服务器地址
|
|
||||||
username: # Nacos 账号
|
|
||||||
password: # Nacos 密码
|
|
||||||
discovery: # 【配置中心】配置项
|
|
||||||
namespace: dev # 命名空间。这里使用 dev 开发环境
|
|
||||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
|
||||||
metadata:
|
|
||||||
version: 1.0.0 # 服务实例的版本号,可用于灰度发布
|
|
||||||
config: # 【注册中心】配置项
|
|
||||||
namespace: dev # 命名空间。这里使用 dev 开发环境
|
|
||||||
group: DEFAULT_GROUP # 使用的 Nacos 配置分组,默认为 DEFAULT_GROUP
|
|
||||||
|
|
||||||
--- #################### 数据库相关配置 ####################
|
|
||||||
spring:
|
|
||||||
# 数据源配置项
|
|
||||||
autoconfigure:
|
|
||||||
exclude:
|
|
||||||
datasource:
|
|
||||||
druid: # Druid 【监控】相关的全局配置
|
|
||||||
web-stat-filter:
|
|
||||||
enabled: true
|
|
||||||
stat-view-servlet:
|
|
||||||
enabled: true
|
|
||||||
allow: # 设置白名单,不填则允许所有访问
|
|
||||||
url-pattern: /druid/*
|
|
||||||
login-username: # 控制台管理用户名和密码
|
|
||||||
login-password:
|
|
||||||
filter:
|
|
||||||
stat:
|
|
||||||
enabled: true
|
|
||||||
log-slow-sql: true # 慢 SQL 记录
|
|
||||||
slow-sql-millis: 100
|
|
||||||
merge-sql: true
|
|
||||||
wall:
|
|
||||||
config:
|
|
||||||
multi-statement-allow: true
|
|
||||||
dynamic: # 多数据源配置
|
|
||||||
druid: # Druid 【连接池】相关的全局配置
|
|
||||||
initial-size: 5 # 初始连接数
|
|
||||||
min-idle: 10 # 最小连接池数量
|
|
||||||
max-active: 20 # 最大连接池数量
|
|
||||||
max-wait: 600000 # 配置获取连接等待超时的时间,单位:毫秒
|
|
||||||
time-between-eviction-runs-millis: 60000 # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位:毫秒
|
|
||||||
min-evictable-idle-time-millis: 300000 # 配置一个连接在池中最小生存的时间,单位:毫秒
|
|
||||||
max-evictable-idle-time-millis: 900000 # 配置一个连接在池中最大生存的时间,单位:毫秒
|
|
||||||
validation-query: SELECT 1 FROM DUAL # 配置检测连接是否有效
|
|
||||||
test-while-idle: true
|
|
||||||
test-on-borrow: false
|
|
||||||
test-on-return: false
|
|
||||||
primary: master
|
|
||||||
datasource:
|
|
||||||
master:
|
|
||||||
url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
|
|
||||||
username: root
|
|
||||||
password: 123456
|
|
||||||
slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
|
|
||||||
lazy: true # 开启懒加载,保证启动速度
|
|
||||||
url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
|
|
||||||
username: root
|
|
||||||
password: 123456
|
|
||||||
|
|
||||||
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
|
|
||||||
data:
|
|
||||||
redis:
|
|
||||||
host: 400-infra.server.iocoder.cn # 地址
|
|
||||||
port: 6379 # 端口
|
|
||||||
database: 1 # 数据库索引
|
|
||||||
# password: 123456 # 密码,建议生产环境开启
|
|
||||||
|
|
||||||
--- #################### MQ 消息队列相关配置 ####################
|
|
||||||
|
|
||||||
# rocketmq 配置项,对应 RocketMQProperties 配置类
|
|
||||||
rocketmq:
|
|
||||||
name-server: 127.0.0.1:9876 # RocketMQ Namesrv
|
|
||||||
|
|
||||||
spring:
|
|
||||||
# RabbitMQ 配置项,对应 RabbitProperties 配置类
|
|
||||||
rabbitmq:
|
|
||||||
host: 127.0.0.1 # RabbitMQ 服务的地址
|
|
||||||
port: 5672 # RabbitMQ 服务的端口
|
|
||||||
username: guest # RabbitMQ 服务的账号
|
|
||||||
password: guest # RabbitMQ 服务的密码
|
|
||||||
# Kafka 配置项,对应 KafkaProperties 配置类
|
|
||||||
kafka:
|
|
||||||
bootstrap-servers: 127.0.0.1:9092 # 指定 Kafka Broker 地址,可以设置多个,以逗号分隔
|
|
||||||
|
|
||||||
--- #################### 定时任务相关配置 ####################
|
|
||||||
xxl:
|
|
||||||
job:
|
|
||||||
admin:
|
|
||||||
addresses: http://127.0.0.1:9090/xxl-job-admin # 调度中心部署跟地址
|
|
||||||
|
|
||||||
--- #################### 服务保障相关配置 ####################
|
|
||||||
|
|
||||||
# Lock4j 配置项
|
|
||||||
lock4j:
|
|
||||||
acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
|
|
||||||
expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
|
|
||||||
|
|
||||||
--- #################### 监控相关配置 ####################
|
|
||||||
|
|
||||||
# Actuator 监控端点的配置项
|
|
||||||
management:
|
|
||||||
endpoints:
|
|
||||||
web:
|
|
||||||
base-path: /actuator # Actuator 提供的 API 接口的根目录。默认为 /actuator
|
|
||||||
exposure:
|
|
||||||
include: '*' # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
|
|
||||||
|
|
||||||
# Spring Boot Admin 配置项
|
|
||||||
spring:
|
|
||||||
boot:
|
|
||||||
admin:
|
|
||||||
# Spring Boot Admin Client 客户端的相关配置
|
|
||||||
client:
|
|
||||||
instance:
|
|
||||||
service-host-type: IP # 注册实例时,优先使用 IP [IP, HOST_NAME, CANONICAL_HOST_NAME]
|
|
||||||
# Spring Boot Admin Server 服务端的相关配置
|
|
||||||
context-path: /admin # 配置 Spring
|
|
||||||
|
|
||||||
# 日志文件配置
|
|
||||||
logging:
|
|
||||||
file:
|
|
||||||
name: ${user.home}/logs/${spring.application.name}.log # 日志文件名,全路径
|
|
||||||
|
|
||||||
--- #################### 微信公众号、小程序相关配置 ####################
|
|
||||||
wx:
|
|
||||||
mp: # 公众号配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md 文档
|
|
||||||
# app-id: wx041349c6f39b268b
|
|
||||||
# secret: 5abee519483bc9f8cb37ce280e814bd0
|
|
||||||
app-id: wx5b23ba7a5589ecbb # 测试号
|
|
||||||
secret: 2a7b3b20c537e52e74afd395eb85f61f
|
|
||||||
# 存储配置,解决 AccessToken 的跨节点的共享
|
|
||||||
config-storage:
|
|
||||||
type: RedisTemplate # 采用 RedisTemplate 操作 Redis,会自动从 Spring 中获取
|
|
||||||
key-prefix: wx # Redis Key 的前缀
|
|
||||||
http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台
|
|
||||||
miniapp: # 小程序配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-miniapp-spring-boot-starter/README.md 文档
|
|
||||||
# appid: wx62056c0d5e8db250
|
|
||||||
# secret: 333ae72f41552af1e998fe1f54e1584a
|
|
||||||
appid: wx63c280fe3248a3e7 # wenhualian的接口测试号
|
|
||||||
secret: 6f270509224a7ae1296bbf1c8cb97aed
|
|
||||||
config-storage:
|
|
||||||
type: RedisTemplate # 采用 RedisTemplate 操作 Redis,会自动从 Spring 中获取
|
|
||||||
key-prefix: wa # Redis Key 的前缀
|
|
||||||
http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台
|
|
||||||
|
|
||||||
--- #################### 芋道相关配置 ####################
|
|
||||||
|
|
||||||
# 芋道配置项,设置当前项目所有自定义的配置
|
|
||||||
yudao:
|
|
||||||
demo: true # 开启演示模式
|
|
||||||
|
|
||||||
justauth:
|
|
||||||
enabled: true
|
|
||||||
type:
|
|
||||||
DINGTALK: # 钉钉
|
|
||||||
client-id: dingvrnreaje3yqvzhxg
|
|
||||||
client-secret: i8E6iZyDvZj51JIb0tYsYfVQYOks9Cq1lgryEjFRqC79P3iJcrxEwT6Qk2QvLrLI
|
|
||||||
ignore-check-redirect-uri: true
|
|
||||||
WECHAT_ENTERPRISE: # 企业微信
|
|
||||||
client-id: wwd411c69a39ad2e54
|
|
||||||
client-secret: 1wTb7hYxnpT2TUbIeHGXGo7T0odav1ic10mLdyyATOw
|
|
||||||
agent-id: 1000004
|
|
||||||
ignore-check-redirect-uri: true
|
|
||||||
# noinspection SpringBootApplicationYaml
|
|
||||||
WECHAT_MINI_APP: # 微信小程序
|
|
||||||
client-id: ${wx.miniapp.appid}
|
|
||||||
client-secret: ${wx.miniapp.secret}
|
|
||||||
ignore-check-redirect-uri: true
|
|
||||||
ignore-check-state: true # 微信小程序,不会使用到 state,所以不进行校验
|
|
||||||
WECHAT_MP: # 微信公众号
|
|
||||||
client-id: ${wx.mp.app-id}
|
|
||||||
client-secret: ${wx.mp.secret}
|
|
||||||
ignore-check-redirect-uri: true
|
|
||||||
cache:
|
|
||||||
type: REDIS
|
|
||||||
prefix: 'social_auth_state:' # 缓存前缀,目前只对 Redis 缓存生效,默认 JUSTAUTH::STATE::
|
|
||||||
timeout: 24h # 超时时长,目前只对 Redis 缓存生效,默认 3 分钟
|
|
||||||
@@ -56,23 +56,14 @@ spring:
|
|||||||
primary: master
|
primary: master
|
||||||
datasource:
|
datasource:
|
||||||
master:
|
master:
|
||||||
url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
|
url: jdbc:mysql://43.139.42.137:8406/tashow-platform?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
|
||||||
# url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=true&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true # MySQL Connector/J 5.X 连接的示例
|
username: tashow-platform
|
||||||
# url: jdbc:postgresql://127.0.0.1:5432/ruoyi-vue-pro # PostgreSQL 连接的示例
|
password: tashow123,
|
||||||
# url: jdbc:oracle:thin:@127.0.0.1:1521:xe # Oracle 连接的示例
|
# slave: # 模拟从库,可根据自己需要修改
|
||||||
# url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=ruoyi-vue-pro # SQLServer 连接的示例
|
# lazy: true # 开启懒加载,保证启动速度
|
||||||
# url: jdbc:dm://10.211.55.4:5236?schema=RUOYI_VUE_PRO # DM 连接的示例
|
# url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true
|
||||||
username: root
|
# username: root
|
||||||
password: 123456
|
# password: 123456
|
||||||
# username: sa # SQL Server 连接的示例
|
|
||||||
# password: JSm:g(*%lU4ZAkz06cd52KqT3)i1?H7W # SQL Server 连接的示例
|
|
||||||
# username: SYSDBA # DM 连接的示例
|
|
||||||
# password: SYSDBA # DM 连接的示例
|
|
||||||
slave: # 模拟从库,可根据自己需要修改
|
|
||||||
lazy: true # 开启懒加载,保证启动速度
|
|
||||||
url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true
|
|
||||||
username: root
|
|
||||||
password: 123456
|
|
||||||
|
|
||||||
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
|
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
|
||||||
data:
|
data:
|
||||||
@@ -85,8 +76,8 @@ spring:
|
|||||||
--- #################### MQ 消息队列相关配置 ####################
|
--- #################### MQ 消息队列相关配置 ####################
|
||||||
|
|
||||||
# rocketmq 配置项,对应 RocketMQProperties 配置类
|
# rocketmq 配置项,对应 RocketMQProperties 配置类
|
||||||
rocketmq:
|
#rocketmq:
|
||||||
name-server: 127.0.0.1:9876 # RocketMQ Namesrv
|
# name-server: 127.0.0.1:9876 # RocketMQ Namesrv
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
# RabbitMQ 配置项,对应 RabbitProperties 配置类
|
# RabbitMQ 配置项,对应 RabbitProperties 配置类
|
||||||
@@ -141,24 +132,14 @@ logging:
|
|||||||
--- #################### 微信公众号、小程序相关配置 ####################
|
--- #################### 微信公众号、小程序相关配置 ####################
|
||||||
wx:
|
wx:
|
||||||
mp: # 公众号配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md 文档
|
mp: # 公众号配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md 文档
|
||||||
# app-id: wx041349c6f39b268b # 测试号(牛希尧提供的)
|
|
||||||
# secret: 5abee519483bc9f8cb37ce280e814bd0
|
|
||||||
app-id: wx5b23ba7a5589ecbb # 测试号(自己的)
|
app-id: wx5b23ba7a5589ecbb # 测试号(自己的)
|
||||||
secret: 2a7b3b20c537e52e74afd395eb85f61f
|
secret: 2a7b3b20c537e52e74afd395eb85f61f
|
||||||
# app-id: wxa69ab825b163be19 # 测试号(Kongdy 提供的)
|
|
||||||
# secret: bd4f9fab889591b62aeac0d7b8d8b4a0
|
|
||||||
# 存储配置,解决 AccessToken 的跨节点的共享
|
# 存储配置,解决 AccessToken 的跨节点的共享
|
||||||
config-storage:
|
config-storage:
|
||||||
type: RedisTemplate # 采用 RedisTemplate 操作 Redis,会自动从 Spring 中获取
|
type: RedisTemplate # 采用 RedisTemplate 操作 Redis,会自动从 Spring 中获取
|
||||||
key-prefix: wx # Redis Key 的前缀
|
key-prefix: wx # Redis Key 的前缀
|
||||||
http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台
|
http-client-type: HttpClient # 采用 HttpClient 请求微信公众号平台
|
||||||
miniapp: # 小程序配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-miniapp-spring-boot-starter/README.md 文档
|
miniapp: # 小程序配置(必填),参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-miniapp-spring-boot-starter/README.md 文档
|
||||||
# appid: wx62056c0d5e8db250 # 测试号(牛希尧提供的)
|
|
||||||
# secret: 333ae72f41552af1e998fe1f54e1584a
|
|
||||||
# appid: wx63c280fe3248a3e7 # wenhualian的接口测试号
|
|
||||||
# secret: 6f270509224a7ae1296bbf1c8cb97aed
|
|
||||||
# appid: wxc4598c446f8a9cb3 # 测试号(Kongdy 提供的)
|
|
||||||
# secret: 4a1a04e07f6a4a0751b39c3064a92c8b
|
|
||||||
appid: wx66186af0759f47c9 # 测试号(puhui 提供的)
|
appid: wx66186af0759f47c9 # 测试号(puhui 提供的)
|
||||||
secret: 3218bcbd112cbc614c7264ceb20144ac
|
secret: 3218bcbd112cbc614c7264ceb20144ac
|
||||||
config-storage:
|
config-storage:
|
||||||
@@ -169,7 +150,7 @@ wx:
|
|||||||
--- #################### 芋道相关配置 ####################
|
--- #################### 芋道相关配置 ####################
|
||||||
|
|
||||||
# 芋道配置项,设置当前项目所有自定义的配置
|
# 芋道配置项,设置当前项目所有自定义的配置
|
||||||
yudao:
|
tashow:
|
||||||
env: # 多环境的配置项
|
env: # 多环境的配置项
|
||||||
tag: ${HOSTNAME}
|
tag: ${HOSTNAME}
|
||||||
captcha:
|
captcha:
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ mybatis-plus:
|
|||||||
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
|
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
|
||||||
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
|
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
|
||||||
banner: false # 关闭控制台的 Banner 打印
|
banner: false # 关闭控制台的 Banner 打印
|
||||||
type-aliases-package: ${yudao.info.base-package}.dal.dataobject
|
type-aliases-package: ${tashow.info.base-package}.dal.dataobject
|
||||||
encryptor:
|
encryptor:
|
||||||
password: XDV71a+xqStEA3WH # 加解密的秘钥,可使用 https://www.imaegoo.com/2020/aes-key-generator/ 网站生成
|
password: XDV71a+xqStEA3WH # 加解密的秘钥,可使用 https://www.imaegoo.com/2020/aes-key-generator/ 网站生成
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user