user-dev.yml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. spring:
  2. # 数据源连接--start
  3. datasource:
  4. url: jdbc:mysql://192.168.2.100:3306/caimei?characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  5. username: developer
  6. password: 05bZ/OxTB:X+yd%1
  7. type: com.zaxxer.hikari.HikariDataSource
  8. hikari:
  9. minimum-idle: 5
  10. maximum-pool-size: 15
  11. auto-commit: true
  12. idle-timeout: 30000
  13. pool-name: DatebookHikariCP
  14. max-lifetime: 1800000
  15. connection-timeout: 30000
  16. connection-test-query: SELECT 1
  17. # 数据源连接--end
  18. redis:
  19. host: 192.168.2.100
  20. port: 6379
  21. #password: 123456
  22. #Redis数据库索引(默认为0)
  23. database: 0
  24. jedis:
  25. pool:
  26. max-active: 50
  27. #连接池最大阻塞等待时间(使用负值表示没有限制)
  28. max-wait: -1
  29. #连接池中的最大空闲连接
  30. max-idle: 20
  31. #连接池中的最小空闲连接
  32. min-idle: 2
  33. #连接超时时间(毫秒)
  34. timeout: 5000
  35. #整合mybatis
  36. mybatis:
  37. #加载Mybatis映射文件
  38. mapper-locations:
  39. - classpath:mapper/*.xml
  40. # 指定服务注册中心的地址
  41. eureka:
  42. instance:
  43. prefer-ip-address: true # 是否使用 ip 地址注册
  44. instance-id: ${spring.cloud.client.ip-address}:${server.port} # ip:port
  45. client:
  46. service-url: # 设置服务注册中心地址
  47. defaultZone: http://localhost:18000/eureka/
  48. # 日志配置
  49. logging:
  50. level:
  51. root: info
  52. com.caimei365.user.mapper: debug
  53. # 微信配置
  54. wx:
  55. #pcwx信息
  56. app-id: wx22be9ab1a6aa4715
  57. app-secret: ebf8cfc4dbadae3431a8b0267c4fd09f
  58. # 微信授权回调(扫码),nginx中转
  59. redirect-uri: https://www.caimei365.com/auth/callback/beta
  60. #小程序wx信息
  61. mini-app-id: wxf3cd4ae0cdd11c36
  62. mini-app-secret: f5707c40c07adf0e2110c58ce6a4f4b3
  63. #crm公众号信息
  64. crm-app-id: wx91c4152b60ca91a3
  65. crm-app-secret: a563dd2c07c9c815a4e697c8b6cb73dc
  66. #呵呵商城小程序信息
  67. hehe-app-id: wx2c3b0a7f343235b1
  68. hehe-app-secret: 1bb87882ee85a0411923d7f56c7dde75
  69. mcare-app-id: wxaa4acc852618da69;
  70. mcare-app-secret: 3161feca03371cd96dd8043f55ee8ad0;
  71. # swagger配置
  72. swagger:
  73. # swagger开启状态,true开启,false关闭
  74. enabled: true
  75. ui-config:
  76. operations-sorter: method
  77. caimei:
  78. # 小程序邀请码过期天数
  79. validTime: 7
  80. # 服务域名
  81. wwwDomain: https://www-b.caimei365.com
  82. coreDomain: https://core-b.caimei365.com
  83. imageDomain: http://192.168.2.100