application-dev.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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: 119.29.0.46
  20. port: 6380
  21. password: 6#xsI%b4o@5c3RoE
  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: wxea43a0f9ebce9e66
  65. crm-app-secret: 1c3cd60908e72dd280840bee9e15f7f6
  66. # swagger配置
  67. swagger:
  68. # swagger开启状态,true开启,false关闭
  69. enabled: true
  70. ui-config:
  71. operations-sorter: method
  72. caimei:
  73. # 小程序邀请码过期天数
  74. validTime: 7