application.yml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. server:
  2. port: 21701
  3. servlet:
  4. context-path: /thyy/thirdpart/api
  5. spring:
  6. application:
  7. name: thyy-thirdpart-api
  8. datasource:
  9. url: "jdbc:sqlserver://172.16.32.168:1433;databaseName=thxyhisdb"
  10. username: "sa"
  11. password:
  12. driver-class-name: "com.microsoft.sqlserver.jdbc.SQLServerDriver"
  13. druid:
  14. #type: com.alibaba.druid.pool.DruidDataSource
  15. #初始化时建立物理连接的个数。初始化发生在显示调用init方法,或者第一次getConnection时
  16. initial-size: 20
  17. #最大连接池数量
  18. max-active: 50
  19. #最小连接池数量
  20. min-idle: 10
  21. #获取连接时最大等待时间,单位毫秒
  22. max-wait: 60000
  23. #使用非公平锁。
  24. use-unfair-lock: true
  25. #用来检测连接是否有效的sql,要求是一个查询语句。
  26. validation-query: SELECT 1
  27. #建议配置为true,不影响性能,并且保证安全性。申请连接的时候检测,如果空闲时间大于timeBetweenEvictionRunsMillis,执行validationQuery检测连接是否有效。
  28. test-while-idle: true
  29. #申请连接时执行validationQuery检测连接是否有效,
  30. test-on-borrow: true
  31. #归还连接时执行validationQuery检测连接是否有效,
  32. test-on-return: false
  33. #Destroy线程会检测连接的间隔时间,testWhileIdle的判断依据,详细看testWhileIdle属性的说明
  34. time-between-eviction-runs-millis: 60000
  35. #配置一个连接在池中最小生存的时间,单位是毫秒
  36. min-evictable-idle-time-millis: 300000
  37. #监控统计用的filter:stat 日志用的filter:log4j 防御sql注入的filter:wall
  38. filters: stat
  39. #是否缓存preparedStatement,也就是PSCache,在mysql5.5以下的版本中没有PSCache功能,建议关闭掉
  40. pool-prepared-statements: false
  41. #要启用PSCache,必须配置大于0,当大于0时,poolPreparedStatements自动触发修改为true。
  42. max-pool-prepared-statement-per-connection-size: 200
  43. #对于长时间不使用的连接强制关闭
  44. remove-abandoned: true
  45. #数据库链接超过180秒开始关闭空闲连接 秒为单位
  46. remove-abandoned-timeout: 180
  47. #将当前关闭动作记录到日志 此配置项会影响性能,只在排查的时候打开,系统运行时最好关闭。
  48. log-abandoned: true
  49. jackson:
  50. time-zone: Asia/Shanghai
  51. date-format: yyyy-MM-dd HH:mm:ss
  52. mvc:
  53. format:
  54. date: yyyy-MM-dd
  55. date-time: yyyy-MM-dd HH:mm:ss
  56. thyy:
  57. tts:
  58. service: xfyun
  59. directory: D:\a.snapshot\resource\voice
  60. speech-url: http://172.16.32.160:8080/resource/voice
  61. app-id: fdde4cef
  62. api-key: 95a78dd3cfcc4863e3c003352ca8ec65
  63. api-secret: OWZjZGE4NjI3MDdkYzg4ZjllY2VjNGQ0
  64. inspection:
  65. jy: http://172.16.32.178/apis/third/report/query
  66. bl: http://172.16.32.160:9205/thyy/api/public/bl_report
  67. xd: http://172.16.32.167:9206/thyy/api/public/ecgReport
  68. service: shanghaihaotai
  69. hlyy:
  70. url: http://172.16.32.121:8016/Audit.ashx
  71. source: HIS
  72. emr:
  73. url: "http://172.16.32.125:8001"
  74. authorization: "user:dc71ccfec05b799ad52360c48d504019"
  75. pdf-url: "http://webhis.thyy.cn:8080/thyyemrpdfserver/emr/archive/pdf"
  76. config:
  77. hosp-code: H43010500370
  78. hosp-name: 长沙泰和医院