application.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ##如果有配置服务的话,远程服务器和本地服务器配置不一致的情况下,优先远程的为主 git上 svr-base -> git application ->本地 appliction ->本地 bootstarp
  2. spring:
  3. application:
  4. name: svr-base #注册到发现服务的id 如果id一样 eurika会自动做负载
  5. jmx:
  6. default-domain: svr-base
  7. enabled: true
  8. data:
  9. elasticsearch:
  10. cluster-name: jkzl #es集群的名字
  11. cluster-nodes: 172.19.103.68:9300 #多个逗号分割
  12. cluster-nodes-jest: http://172.19.103.68:9200 #多个逗号分割
  13. repositories:
  14. enabled: false
  15. properties:
  16. client:
  17. transport:
  18. sniff: false #开启嗅探集群 用nginx代理一层过后会出现ip解析失败问题
  19. management:
  20. security:
  21. enabled: false #关闭 refresh的权限认证
  22. health:
  23. config:
  24. enabled: true
  25. endpoints:
  26. info:
  27. enabled: true
  28. ---
  29. spring:
  30. profiles: jwdev
  31. jw:
  32. sms:
  33. url: 123
  34. code: 123
  35. name: 123
  36. password: 123
  37. ---
  38. spring:
  39. profiles: jwtest
  40. ---
  41. spring:
  42. profiles: jwprod