| | |
| | | primary: master |
| | | datasource: |
| | | master: |
| | | url: jdbc:mysql://127.0.0.1:3306/iailab-platform?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例 |
| | | url: jdbc:mysql://172.16.8.100:3306/iailab_plat_system?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例 |
| | | username: root |
| | | password: 123456 |
| | | slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改 |
| | | lazy: true # 开启懒加载,保证启动速度 |
| | | url: jdbc:mysql://127.0.0.1:3306/iailab-platform?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例 |
| | | url: jdbc:mysql://127.0.0.1:3306/iailab_plat_system?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例 |
| | | username: root |
| | | password: 123456 |
| | | |
| | |
| | | spring: |
| | | # RabbitMQ 配置项,对应 RabbitProperties 配置类 |
| | | rabbitmq: |
| | | host: 127.0.0.1 # RabbitMQ 服务的地址 |
| | | host: 172.16.8.200 # RabbitMQ 服务的地址 |
| | | port: 5672 # RabbitMQ 服务的端口 |
| | | username: guest # RabbitMQ 服务的账号 |
| | | password: guest # RabbitMQ 服务的密码 |
| | | username: admin # RabbitMQ 服务的账号 |
| | | password: admin123 # 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 # 调度中心部署跟地址 |
| | | |
| | | --- #################### 服务保障相关配置 #################### |
| | | |
| | |
| | | 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 |
| | | |
| | | --- #################### 微信公众号、小程序相关配置 #################### |
| | | 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 请求微信公众号平台 |
| | | |
| | | --- #################### 平台相关配置 #################### |
| | | |
| | | # 平台配置项,设置当前项目所有自定义的配置 |
| | | iailab: |
| | | env: # 多环境的配置项 |
| | | tag: ${HOSTNAME} |
| | | security: |
| | | mock-enable: true |
| | | access-log: # 访问日志的配置项 |
| | | enable: false |
| | | xss: |
| | | enable: false |
| | | exclude-urls: # 如下两个 url,仅仅是为了演示,去掉配置也没关系 |
| | | - ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求 |
| | | - ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求 |
| | | pay: |
| | | pay-notify-url: http://niubi.natapp1.cc/api/pay/order/notify |
| | | pay-return-url: http://niubi.natapp1.cc/api/pay/order/return |
| | | refund-notify-url: http://niubi.natapp1.cc/api/pay/refund/notify |
| | | demo: false # 开启演示模式 |
| | | |
| | | 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 分钟 |
| | | captcha: |
| | | enable: false # 本地环境,暂时关闭图片验证码,方便登录等接口的测试 |