application.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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: 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. #配置面向服务调用
  31. cloud:
  32. config:
  33. discovery:
  34. enabled: true
  35. service-id: CONFIG
  36. profile: prod
  37. label: master
  38. servlet:
  39. multipart:
  40. max-file-size : 10MB
  41. max-request-size : 20MB
  42. profiles:
  43. active: dev
  44. management:
  45. endpoints:
  46. web:
  47. exposure:
  48. include: false
  49. #放到子文件
  50. #eureka:
  51. # client:
  52. # service-url:
  53. # defaultZone: http://liangjian:360lj.comOauth2passwd@192.168.50.32:11002/eureka/
  54. # # 使用ip地址注册到eureka server
  55. # instance:
  56. # ip-address: true
  57. # #instance-id: ${spring.cloud.client.ipAddress}:${server.port}
  58. # instance-id: 192.168.50.39:${server.port}
  59. ribbon:
  60. ##建立连接所有的时间 正常情况下 两端连接所有时间
  61. ReadTimeOut: 5000
  62. ##建立连接后从服务器读取到科用资源的时间
  63. ConnectionTimeOut: 5000
  64. mybatis-plus:
  65. mapper-locations: classpath*:mapper/*Mapper.xml
  66. type-aliases-package: com.liangjian11.wx.mp.modle
  67. global-config:
  68. refresh-mapper: true
  69. configuration:
  70. # 是否开启自动驼峰命名规则(camel case)映射,即从经典数据库列名 A_COLUMN(下划线命名) 到经典 Java 属性名 aColumn(驼峰命名) 的类似映射
  71. map-underscore-to-camel-case: false