application.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ##服务配置
  2. server:
  3. port: 8001 #监听端口
  4. ##自定义配置
  5. mta:
  6. debug: true #是否测试
  7. ##oss配置
  8. oss:
  9. url: http://yangjie-test.oss-cn-beijing.aliyuncs.com
  10. bucket: yangjie-test
  11. endpoint: http://oss-cn-beijing.aliyuncs.com
  12. accessKeyId: LTAIbMS7HApX1Vz7
  13. accessKeySecret: f1ro3QyunFsyElXfjCAJWtPozdCjNu
  14. ##spring配置
  15. spring:
  16. ##应用配置 #服务名称
  17. application.name: mta_service_file
  18. ##监控服务配置
  19. boot.admin.client:
  20. instance.preferIp: true #使用IP注册
  21. url: http://192.168.0.179:1111 #监控服务地址
  22. ##注册中心配置
  23. eureka:
  24. instance:
  25. preferIpAddress: true #使用ip注册服务
  26. ipAddress: localhost #配置ip地址
  27. instanceId: ${eureka.instance.ipAddress}:${server.port} #实例显示名称
  28. client:
  29. healthcheck.enabled: true #开启健康检测
  30. serviceUrl.defaultZone: http://192.168.0.179:8761/eureka #配置中心地址
  31. ##监控配置
  32. management:
  33. server.port: 18001 #监控端口
  34. endpoints.web.exposure.include: "*" #开启所有端点
  35. endpoint.health.show-details: always #显示健康详情
  36. ##日志配置
  37. logging:
  38. level:
  39. com.llisoft.service.file.dao: debug