application.yml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. spring:
  2. application:
  3. name: websocket-server
  4. security:
  5. user:
  6. name: admin
  7. password: select111***
  8. datasource:
  9. driver-class-name: com.mysql.jdbc.Driver
  10. url: jdbc:mysql://10.10.100.166:3306/school?characterEncoding=utf-8&useSSL=false&allowMultiQueries=true
  11. username: root
  12. password: select111***
  13. hikari:
  14. minimum-idle: 5
  15. maximum-pool-size: 50
  16. idle-timeout: 30000
  17. max-lifetime: 1800000
  18. connection-timeout: 30000
  19. messages:
  20. basename: i18n/messages
  21. encoding: UTF-8
  22. rabbitmq:
  23. host: 10.10.100.166
  24. port: 3306
  25. virtual-host: school
  26. username: school
  27. password: select111***
  28. zipkin:
  29. sender:
  30. type: rabbit
  31. locator:
  32. discovery:
  33. enabled: true
  34. sleuth:
  35. sampler:
  36. probability: 1.0
  37. redis:
  38. host: 10.1.81.62
  39. port: 6379
  40. profiles:
  41. active: dev
  42. eureka:
  43. instance:
  44. leaseRenewalIntervalInSeconds: 10
  45. health-check-url-path: /actuator/health
  46. status-page-url-path: /actuator/info
  47. metadata-map:
  48. user.name: ${spring.security.user.name}
  49. user.password: ${spring.security.user.password}
  50. client:
  51. registryFetchIntervalSeconds: 5
  52. serviceUrl:
  53. defaultZone: http://${spring.security.user.name}:${spring.security.user.password}@10.1.81.61:8510/eureka/
  54. management:
  55. endpoints:
  56. web:
  57. exposure:
  58. include: "*"
  59. endpoint:
  60. health:
  61. show-details: always
  62. server:
  63. port: 9620
  64. tomcat:
  65. uri-encoding: UTF-8
  66. info:
  67. name: '@project.artifactId@'
  68. description: '@project.description@'
  69. version: '@project.version@'
  70. spring-boot-version: '@spring.boot.version@'
  71. spring-cloud-version: '@spring.cloud.version@'
  72. mybatis:
  73. type-aliases-package: com.usoftchina.smartschool.po
  74. mapper-locations: classpath:mapper/*.xml
  75. auth:
  76. public-key: auth/pub.key
  77. ribbon:
  78. ReadTimeout: 10000
  79. ConnectTimeout: 10000
  80. feign:
  81. hystrix:
  82. enabled: true
  83. hystrix:
  84. command:
  85. default:
  86. execution:
  87. timeout:
  88. enabled: true
  89. isolation:
  90. thread:
  91. timeoutInMilliseconds: 4000