application.properties 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. server.port=49001
  2. # eureka
  3. spring.application.name=eureka-server
  4. #主机名
  5. eureka.instance.hostname=eureka-server
  6. eureka.instance.prefer-ip-address=true
  7. #eureka.instance.instance-id=${eureka.instance.hostname}:${server.port}
  8. #eureka.instance.lease-renewal-interval-in-seconds=5
  9. #eureka.instance.lease-expiration-duration-in-seconds=5
  10. #服务注册中心的配置内容,指定服务注册中心的位置
  11. eureka.client.service-url.defaultZone=http://10.0.0.153:49001/eureka/,http://10.0.0.152:49001/eureka/
  12. #测试
  13. #eureka.client.service-url.defaultZone=http://120.25.151.99:49001/eureka/
  14. #是否向服务注册中心注册自己
  15. eureka.client.register-with-eureka=true
  16. #是否检索服务
  17. eureka.client.fetch-registry=true
  18. #Log levels (TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF)
  19. logging.level.root=INFO
  20. logging.level.org.springframework=INFO
  21. logging.level.org.springframework.web=INFO
  22. logging.level.org.mybatis=DEBUG
  23. logging.level.com.shawn=TRACE
  24. # File output
  25. logging.file.max-size=100MB
  26. logging.file.max-history=30
  27. logging.file=/app/applogs/${spring.application.name}/${spring.application.name}.log