applicationmp.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. server:
  2. port: 8081
  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: 5105a77a0e023a55f1454e0dd5bbe21f #(公众号的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://219.128.77.86:1433; DatabaseName=qywechattest
  33. username: test
  34. password: 360ljtest!
  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@192.168.50.32:11002/eureka/
  58. # 使用ip地址注册到eureka server
  59. instance:
  60. ip-address: true
  61. #instance-id: ${spring.cloud.client.ipAddress}:${server.port}
  62. instance-id: 192.168.10.40:${server.port}
  63. mybatis-plus:
  64. mapper-locations: classpath*:mapper/*Mapper.xml
  65. type-aliases-package: com.liangjian11.wx.mp.modle
  66. global-config:
  67. refresh-mapper: true
  68. configuration:
  69. # 是否开启自动驼峰命名规则(camel case)映射,即从经典数据库列名 A_COLUMN(下划线命名) 到经典 Java 属性名 aColumn(驼峰命名) 的类似映射
  70. map-underscore-to-camel-case: false
  71. clientMember:
  72. port: 8090
  73. service:
  74. id: memb
  75. clientQiyewechat:
  76. port: 7000
  77. service:
  78. id: qiyewechat
  79. clientZuul:
  80. port: 13001
  81. service:
  82. id: 192.168.50.32