application.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. server:
  2. #端口号
  3. port: 8089
  4. #项目名,如果不设定,默认是 /
  5. servlet:
  6. context-path: "/thmz"
  7. spring:
  8. servlet:
  9. multipart:
  10. #单个文件大小
  11. max-file-size: 20MB
  12. #单次请求总文件大小
  13. max-request-size: 100MB
  14. datasource:
  15. his:
  16. jdbc-url: "jdbc:sqlserver://172.16.32.168:1433;databaseName=thxyhisdb"
  17. #jdbc-url: "jdbc:sqlserver://172.16.32.160:1433;databaseName=thxyhisdb"
  18. username: "sa"
  19. password:
  20. #password: "SAthyy123"
  21. driver-class-name: "com.microsoft.sqlserver.jdbc.SQLServerDriver"
  22. # Hikari connection pool
  23. type: "com.zaxxer.hikari.HikariDataSource"
  24. minimum-idle: 5
  25. maximum-pool-size: 15
  26. auto-commit: true
  27. idle-timeout: 30000
  28. pool-name: DatebookHikariCP
  29. max-lifetime: 1800000
  30. connection-timeout: 30000
  31. connection-test-query: SELECT 1
  32. validation-timeout: 10000
  33. thmz:
  34. #jdbc-url: "jdbc:mariadb://localhost:3306/thyy_mz_system?useUnicode=true&characterEncoding=utf-8"
  35. jdbc-url: "jdbc:mariadb://172.16.32.160:3306/thyy_mz_system?useUnicode=true&characterEncoding=utf-8"
  36. username: "root"
  37. #password: "hrg49086"
  38. password: "thyy@2018"
  39. driver-class-name: "org.mariadb.jdbc.Driver"
  40. type: "com.zaxxer.hikari.HikariDataSource"
  41. minimum-idle: 5
  42. maximum-pool-size: 15
  43. auto-commit: true
  44. idle-timeout: 30000
  45. pool-name: DatebookHikariCP
  46. max-lifetime: 1800000
  47. connection-timeout: 30000
  48. connection-test-query: SELECT 1
  49. validation-timeout: 10000
  50. devtools:
  51. restart:
  52. enabled: true
  53. thymeleaf:
  54. cache: false
  55. #spring cloud 微服务配置
  56. application:
  57. name: thmz-system-server
  58. cloud:
  59. consul:
  60. #测试环境的consul 地址
  61. #host: 127.0.0.1
  62. #生产环境的consul 地址
  63. host: 172.16.32.161
  64. port: 8500
  65. enabled: true
  66. discovery:
  67. enabled: true
  68. serviceName: thmz_system_server
  69. healthCheckPath: /thmz/actuator/health
  70. activemq:
  71. #测试环境的MQ地址
  72. #broker-url: tcp://127.0.0.1:61616
  73. #生产环境的MQ地址
  74. broker-url: tcp://172.16.32.161:61616
  75. # 在考虑结束之前等待的时间
  76. #spring.activemq.close-timeout=15s
  77. # 默认代理URL是否应该在内存中。如果指定了显式代理,则忽略此值。
  78. in-memory: true
  79. # 是否在回滚回滚消息之前停止消息传递。这意味着当启用此命令时,消息顺序不会被保留。
  80. non-blocking-redelivery: false
  81. # 等待消息发送响应的时间。设置为0等待永远。
  82. send-timeout: 0s
  83. #账号
  84. user: system
  85. # 密码
  86. password: manager
  87. #启了连接池, 默认是不开的
  88. pool:
  89. enabled: true
  90. max-connections: 10
  91. #默认情况下activemq提供的是queue模式,若要使用topic模式需要配置下面配置
  92. jms:
  93. pub-sub-domain: true
  94. #MQ 的topic
  95. sendOrderStatusChangeTopic: orderStatusChange
  96. #配置项:开启下划线到驼峰的自动转换. 作用:将数据库字段根据驼峰规则自动注入到对象属性。
  97. mybatis:
  98. configuration:
  99. map-underscore-to-camel-case: true
  100. #打印SQL信息
  101. logging:
  102. level:
  103. cn.hnthyy.thmz.mapper: info
  104. #企业微信消息服务地址测试环境
  105. #serviceUrl: "http://172.16.30.21:8081/adverse.event/sendWxInfo"
  106. #企业微信消息服务地址生产环境
  107. serviceUrl: "http://172.16.32.160:8081/adverse.event/sendWxInfo"
  108. #卡号变更通知开关
  109. sendNoticeToHaiCi: true
  110. #就诊状态通知开关
  111. sendNoticeToPatient: true
  112. #海慈开放服务地址测试环境
  113. #haiciServiceUrl: "https://sapi.med.gzhc365.com/openapi/health"
  114. #海慈开放服务地址生产环境
  115. haiciServiceUrl: "https://api.med.gzhc365.com/openapi/health"