| | |
| | | database: 8 # 数据库索引 |
| | | password: 123456 # 密码,建议生产环境开启 |
| | | |
| | | --- #################### 定时任务相关配置 #################### |
| | | |
| | | xxl: |
| | | job: |
| | | enabled: true # 是否开启调度中心,默认为 true 开启 |
| | | admin: |
| | | addresses: http://172.16.8.100:9090/xxl-job-admin # 调度中心部署跟地址 |
| | | |
| | | --- #################### 微信公众号、小程序相关配置 #################### |
| | | 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 请求微信公众号平台 |
| | | |
| | | --- #################### 平台相关配置 #################### |
| | | |
| | | # 平台配置项,设置当前项目所有自定义的配置 |
| | |
| | | begin-code: 9999 # 这里配置 9999 的原因是,测试方便。 |
| | | end-code: 9999 # 这里配置 9999 的原因是,测试方便。 |
| | | |
| | | 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 分钟 |