application.yml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. ###############################################################################################################
  2. server:
  3. port: 8080
  4. tomcat:
  5. basedir: /mnt/harddisk/saga/tomcatTemp
  6. spring:
  7. application:
  8. name: revit-algorithm
  9. mvc:
  10. favicon:
  11. enabled: true
  12. jmx:
  13. default-domain: revit-algorithm
  14. datasource:
  15. name: revit-algorithm
  16. type: com.alibaba.druid.pool.DruidDataSource
  17. driver-class-name: org.postgresql.Driver
  18. url: jdbc:postgresql://39.102.40.239:5432/datacenter
  19. # url: jdbc:postgresql://192.168.20.250:5432/postgres
  20. # url: jdbc:postgresql://47.94.89.44:5432/datacenter
  21. username: postgres
  22. password: cGVyc2FneV8yMDIwcXdlIUAj
  23. jackson:
  24. date-format: yyyy-MM-dd HH:mm:ss
  25. time-zone: Asia/Shanghai
  26. default-property-inclusion: non_null
  27. # 首字母大写
  28. property-naming-strategy: com.fasterxml.jackson.databind.PropertyNamingStrategy.PascalCaseStrategy
  29. # 以下划线分隔全小写的单词
  30. #property-naming-strategy: com.fasterxml.jackson.databind.PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy
  31. mapper:
  32. # 属性按字母顺序输出
  33. sort_properties_alphabetically: true
  34. jms:
  35. pub-sub-domain: true
  36. template:
  37. delivery-mode: non_persistent
  38. receive-timeout: 1000
  39. time-to-live: 36000
  40. qos-enabled: true
  41. default-destination: model.manage
  42. servlet:
  43. multipart:
  44. max-request-size: 90MB # 限制上传的多个文件的总大小
  45. max-file-size: 90MB # 限制单个文件的最大值
  46. activemq:
  47. broker-url: failover:(tcp://39.102.40.239:61616)
  48. in-memory: true
  49. pool:
  50. enabled: false
  51. user: admin
  52. password: admin
  53. non-blocking-redelivery: true
  54. mybatis:
  55. typeAliasesPackage: cn.sagacloud.server.algorithm.models
  56. #logging:
  57. # pattern:
  58. # console: "%red(%d{yyyy-MM-dd HH:mm:ss}) %green([%thread]) %highlight(%-5level) %boldMagenta(%logger{10}) - %cyan(%msg%n)"
  59. # level:
  60. # - ".=info"
  61. # - "cn.sagacloud=debug"
  62. # - "org.springframework=info"
  63. # - "com.sybotan=debug"
  64. # - "org.apache.activemq=debug"
  65. properties:
  66. #文件服务器配置
  67. fileService:
  68. # 基本属性
  69. url: http://47.93.33.207:8888/image-service/
  70. systemId: revit
  71. secret: 63afbef6906c342b
  72. dir: model
  73. baseGraph: base
  74. report: report
  75. export: export
  76. # 配置文件引用的属性
  77. suffixWithSecret: ?systemId=${properties.fileService.systemId}&secret=${properties.fileService.secret}
  78. suffix: ?systemId=${properties.fileService.systemId}
  79. # 程序中会用到的
  80. uploadPath: ${properties.fileService.url}common/file_upload${properties.fileService.suffixWithSecret}&overwrite=true&key=${properties.fileService.dir}/
  81. baseGraphPath: ${properties.fileService.url}common/file_upload${properties.fileService.suffixWithSecret}&overwrite=true&key=${properties.fileService.baseGraph}/
  82. reportPath: ${properties.fileService.url}common/file_upload${properties.fileService.suffixWithSecret}&overwrite=true&key=${properties.fileService.report}/
  83. exportPath: ${properties.fileService.url}common/file_upload${properties.fileService.suffixWithSecret}&overwrite=true&key=${properties.fileService.export}/
  84. downloadPath: ${properties.fileService.url}common/file_get${properties.fileService.suffix}&key=${properties.fileService.dir}/
  85. reportDownloadPath: ${properties.fileService.url}common/file_get${properties.fileService.suffix}&key=${properties.fileService.report}/
  86. exportDownloadPath: ${properties.fileService.url}common/file_get${properties.fileService.suffix}&key=${properties.fileService.export}/
  87. renamePath: ${properties.fileService.url}common/file_key_change${properties.fileService.suffixWithSecret}
  88. deletePath: ${properties.fileService.url}common/files_delete${properties.fileService.suffixWithSecret}
  89. registerMultipartUpload: ${properties.fileService.url}common/register_multipart_upload${properties.fileService.suffixWithSecret}&overwrite=true&key=${properties.fileService.dir}/
  90. mergeMultipartUpload: ${properties.fileService.url}common/merge_multipart${properties.fileService.suffixWithSecret}&uploadId=
  91. scheduler:
  92. url: http://39.102.40.239:8080/scheduler/
  93. createTask: ${properties.scheduler.url}task/create
  94. queryTask: ${properties.scheduler.url}task/query
  95. queryTaskResult: ${properties.scheduler.url}result/query
  96. createDownload: ${properties.scheduler.url}download/create
  97. datacenter:
  98. url: http://39.102.40.239:8080/datacenter/
  99. # 设备相关接口
  100. equipCreate: ${properties.datacenter.url}object/equip/create
  101. equipDelete: ${properties.datacenter.url}object/equip/delete
  102. equipQuery: ${properties.datacenter.url}object/equip/query
  103. equipUpdate: ${properties.datacenter.url}object/equip/update
  104. # 元空间相关接口
  105. ispaceCreate: ${properties.datacenter.url}object/ispace/create
  106. ispaceDelete: ${properties.datacenter.url}object/ispace/delete
  107. ispaceQuery: ${properties.datacenter.url}object/ispace/query
  108. ispaceUpdate: ${properties.datacenter.url}object/ispace/update
  109. # 部件相关接口
  110. componentCreate: ${properties.datacenter.url}object/component/create
  111. componentDelete: ${properties.datacenter.url}object/component/delete
  112. componentQuery: ${properties.datacenter.url}object/component/query
  113. componentUpdate: ${properties.datacenter.url}object/component/update
  114. # 楼层相关接口
  115. floorQuery: ${properties.datacenter.url}object/floor/query
  116. floorUpdate: ${properties.datacenter.url}object/floor/update
  117. # 绑定楼层接口
  118. floorBind: ${properties.datacenter.url}rel/update/equip-ispace
  119. # 资产接口
  120. propertyQuery: ${properties.datacenter.url}object/property/query
  121. propertyUpdate: ${properties.datacenter.url}object/property/update
  122. # 同步构件接口
  123. windowCreate: ${properties.datacenter.url}window/create_ignore
  124. vwallCreate: ${properties.datacenter.url}vwall/create_ignore
  125. doorCreate: ${properties.datacenter.url}door/create_ignore
  126. message:
  127. url: http://39.102.40.239:8080/message-center/
  128. # 发送消息接口
  129. createPath: ${properties.message.url}message/create