application.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. jmx:
  8. enabled: true
  9. # data:
  10. # elasticsearch:
  11. # cluster-name: jkzl #es集群的名字
  12. # cluster-nodes: 172.19.103.68:9300 #多个逗号分割
  13. # cluster-nodes-jest: http://172.19.103.68:9200 #多个逗号分割
  14. # repositories:
  15. # enabled: true
  16. # properties:
  17. # client:
  18. # transport:
  19. # sniff: false #开启嗅探集群 用nginx代理一层过后会出现ip解析失败问题
  20. management:
  21. security:
  22. enabled: false #关闭 refresh的权限认证
  23. health:
  24. config:
  25. enabled: true
  26. endpoints:
  27. info:
  28. enabled: true
  29. yihu:
  30. admin:
  31. client:
  32. advice:
  33. http: true #默认true
  34. sql:
  35. hibernate: true ##默认false
  36. springJDBC: true ##默认false
  37. server:
  38. ip: 192.168.131.102
  39. port: 8082
  40. ---
  41. spring:
  42. profiles: jwdev
  43. jw:
  44. sms:
  45. url: 123
  46. code: 123
  47. name: 123
  48. password: 123
  49. ---
  50. spring:
  51. profiles: jwtest
  52. ---
  53. spring:
  54. profiles: jwprod