application_mpprod.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. server:
  2. port: 7001
  3. logging:
  4. level:
  5. org.springframework.web: INFO
  6. com.liangjian11.wx.mp: DEBUG
  7. com.github.binarywang.demo.wx.mp: DEBUG
  8. me.chanjar.weixin: DEBUG
  9. wx:
  10. mp:
  11. configs:
  12. - appId: wx4f8c9fef3896ad71 #(一个公众号的appid)
  13. secret: ea186d9f2941b5cd88004e339a4ec479 #(公众号的appsecret)
  14. token: lj123456com #(接口配置里的Token值)
  15. aesKey: 3RtoZxD0Us4ZcjeWw7OCi5xjFLOTGPYAODiVvDkDUpK #(接口配置里的EncodingAESKey值)
  16. - appId: 2222 #(另一个公众号的appid,以下同上)
  17. secret: 1111
  18. token: 111
  19. aesKey: 111
  20. wechat:
  21. open:
  22. componentAppId: "wxdf1147a020c2d975"
  23. componentSecret: "5dd95e893c35b3fc9c1fdf3cb8dc5004"
  24. componentToken: "90fa4bd02583d23c75d2fb76aaacd18e"
  25. componentAesKey: "990fa4bd02583d23c75d2fb76aaacd183d23c75d2fb"
  26. redis:
  27. host: "119.130.113.245"
  28. #spring cloud
  29. spring:
  30. datasource:
  31. driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
  32. url: jdbc:sqlserver://127.0.0.1:1433; DatabaseName=qywechat
  33. username: appauth
  34. password: 360lj.comAppauth#2020
  35. application:
  36. name: mpwechat
  37. #配置面向服务调用
  38. cloud:
  39. config:
  40. discovery:
  41. enabled: true
  42. service-id: CONFIG
  43. profile: prod
  44. label: master
  45. servlet:
  46. multipart:
  47. max-file-size : 10MB
  48. max-request-size : 20MB
  49. management:
  50. endpoints:
  51. web:
  52. exposure:
  53. include: false
  54. eureka:
  55. client:
  56. service-url:
  57. defaultZone: http://liangjian:360lj.comOauth2passwd@119.130.113.245:11000/eureka/
  58. # 使用ip地址注册到eureka server
  59. instance:
  60. ip-address: true
  61. instance-id: ${spring.cloud.client.ipAddress}:${server.port}
  62. mybatis-plus:
  63. mapper-locations: classpath*:mapper/*Mapper.xml
  64. type-aliases-package: com.liangjian11.wx.mp.modle
  65. global-config:
  66. refresh-mapper: true
  67. configuration:
  68. # 是否开启自动驼峰命名规则(camel case)映射,即从经典数据库列名 A_COLUMN(下划线命名) 到经典 Java 属性名 aColumn(驼峰命名) 的类似映射
  69. map-underscore-to-camel-case: false
  70. clientMember:
  71. port: 8090
  72. service:
  73. id: memb
  74. clientQiyewechat:
  75. port: 7000
  76. service:
  77. id: qiyewechat
  78. clientZuul:
  79. port: 13000
  80. service:
  81. id: 119.130.113.245