bootstrap.yml 737 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # 服务端口号
  2. server:
  3. port: 11000
  4. servlet:
  5. context-path: /
  6. spring:
  7. application:
  8. name: framework
  9. profiles:
  10. active: dev
  11. include: orm,cache,msg
  12. cloud:
  13. config:
  14. profile: ${spring.profiles.active}
  15. discovery:
  16. enabled: true
  17. service-id: config
  18. allow-override: true
  19. username: envir
  20. password: envir
  21. security:
  22. scan: true
  23. ---
  24. spring:
  25. profiles: dev
  26. eureka:
  27. instance:
  28. prefer-ip-address: true
  29. client:
  30. service-url:
  31. defaultZone: http://envir:envir@192.168.1.202:11111/eureka/
  32. ---
  33. spring:
  34. profiles: prod
  35. eureka:
  36. client:
  37. service-url:
  38. defaultZone: http://envir:envir@120.77.170.119:11001/eureka/
  39. instance:
  40. prefer-ip-address: true