application.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. server:
  2. port: 18001
  3. # 指定当前服务的名称,这个名称会注册到注册中心
  4. spring:
  5. application:
  6. name: @artifactId@
  7. datasource:
  8. url: jdbc:mysql://192.168.2.100:3306/caimei?characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  9. username: developer
  10. password: 05bZ/OxTB:X+yd%1
  11. type: com.zaxxer.hikari.HikariDataSource
  12. hikari:
  13. minimum-idle: 5
  14. maximum-pool-size: 15
  15. auto-commit: true
  16. idle-timeout: 30000
  17. pool-name: DatebookHikariCP
  18. max-lifetime: 1800000
  19. connection-timeout: 30000
  20. connection-test-query: SELECT 1
  21. redis:
  22. host: 119.29.0.46
  23. port: 6380
  24. password: 6#xsI%b4o@5c3RoE
  25. #Redis数据库索引(默认为0)
  26. database: 0
  27. jedis:
  28. pool:
  29. max-active: 50
  30. #连接池最大阻塞等待时间(使用负值表示没有限制)
  31. max-wait: -1
  32. #连接池中的最大空闲连接
  33. max-idle: 20
  34. #连接池中的最小空闲连接
  35. min-idle: 2
  36. #连接超时时间(毫秒)
  37. timeout: 5000
  38. #整合mybatis
  39. mybatis:
  40. #加载Mybatis映射文件
  41. mapper-locations:
  42. - classpath:mapper/*.xml
  43. # 指定服务注册中心的地址
  44. eureka:
  45. instance:
  46. prefer-ip-address: true # 是否使用 ip 地址注册
  47. instance-id: ${spring.cloud.client.ip-address}:${server.port} # ip:port
  48. client:
  49. service-url: # 设置服务注册中心地址
  50. defaultZone: http://localhost:18000/eureka/
  51. # 日志配置
  52. logging:
  53. level:
  54. root: info
  55. com.caimei365.user.mapper: debug
  56. # 微信配置
  57. wx:
  58. #pcwx信息
  59. app-id: wx22be9ab1a6aa4715
  60. app-secret: ebf8cfc4dbadae3431a8b0267c4fd09f
  61. redirect-uri: https://www.caimei365.com/user/wechatLogin
  62. #小程序wx信息
  63. mini-app-id: wxf3cd4ae0cdd11c36
  64. mini-app-secret: f5707c40c07adf0e2110c58ce6a4f4b3
  65. #crm公众号信息
  66. crm-app-id: wxea43a0f9ebce9e66
  67. crm-app-secret: 1c3cd60908e72dd280840bee9e15f7f6
  68. # swagger配置
  69. swagger:
  70. # swagger开启状态,true开启,false关闭
  71. enabled: true
  72. ui-config:
  73. operations-sorter: method