application.yml 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. ###############################################################################################################
  2. server:
  3. port: 8878
  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: com.mysql.cj.jdbc.Driver
  18. # url: jdbc:mysql://rm-2ze20ntn5y9ljsx147o.mysql.rds.aliyuncs.com:3306/revit?allowMultiQueries=true&serverTimezone=UTC&useUnicode=true&useSSL=false&characterEncoding=UTF-8
  19. # username: root
  20. # password: zVmW58LaAtjIKbb
  21. url: jdbc:mysql://192.168.100.91:9934/revit?allowMultiQueries=true&serverTimezone=UTC&useUnicode=true&useSSL=false&characterEncoding=UTF-8
  22. username: root
  23. password: persagy@2021
  24. # url: jdbc:mysql://cd-cdb-nboe1rje.sql.tencentcdb.com:61955/revit?allowMultiQueries=true&serverTimezone=UTC&useUnicode=true&useSSL=false&characterEncoding=UTF-8
  25. # username: root
  26. # password: Bdtp@1qaz@WSX
  27. second_datasource:
  28. name: revit-algorithm
  29. type: com.alibaba.druid.pool.DruidDataSource
  30. driver-class-name: com.mysql.cj.jdbc.Driver
  31. # url: jdbc:mysql://rm-2ze20ntn5y9ljsx147o.mysql.rds.aliyuncs.com:3306/revit_calc?allowMultiQueries=true&serverTimezone=UTC&useUnicode=true&useSSL=false&characterEncoding=UTF-8
  32. # username: root
  33. # password: zVmW58LaAtjIKbb
  34. url: jdbc:mysql://192.168.100.91:9934/revit_calc?allowMultiQueries=true&serverTimezone=UTC&useUnicode=true&useSSL=false&characterEncoding=UTF-8
  35. username: root
  36. password: persagy@2021
  37. # url: jdbc:mysql://cd-cdb-nboe1rje.sql.tencentcdb.com:61955/revit_calc?allowMultiQueries=true&serverTimezone=UTC&useUnicode=true&useSSL=false&characterEncoding=UTF-8
  38. # username: root
  39. # password: Bdtp@1qaz@WSX
  40. jackson:
  41. date-format: yyyy-MM-dd HH:mm:ss
  42. time-zone: Asia/Shanghai
  43. default-property-inclusion: non_null
  44. # 首字母大写
  45. property-naming-strategy: com.fasterxml.jackson.databind.PropertyNamingStrategy.PascalCaseStrategy
  46. # 以下划线分隔全小写的单词
  47. #property-naming-strategy: com.fasterxml.jackson.databind.PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy
  48. mapper:
  49. # 属性按字母顺序输出
  50. sort_properties_alphabetically: true
  51. jms:
  52. pub-sub-domain: true
  53. template:
  54. delivery-mode: non_persistent
  55. receive-timeout: 1000
  56. time-to-live: 36000
  57. qos-enabled: true
  58. default-destination: model.manage
  59. servlet:
  60. multipart:
  61. max-request-size: 90MB # 限制上传的多个文件的总大小
  62. max-file-size: 90MB # 限制单个文件的最大值
  63. #activemq:
  64. # broker-url: failover:(tcp://192.168.64.15:61616)
  65. # in-memory: true
  66. #pool:
  67. # enabled: false
  68. # user: admin
  69. # password: admin
  70. # non-blocking-redelivery: true
  71. mybatis:
  72. typeAliasesPackage: cn.sagacloud.server.algorithm.models
  73. #logging:
  74. # pattern:
  75. # console: "%red(%d{yyyy-MM-dd HH:mm:ss}) %green([%thread]) %highlight(%-5level) %boldMagenta(%logger{10}) - %cyan(%msg%n)"
  76. # level:
  77. # - ".=info"
  78. # - "cn.sagacloud=debug"
  79. # - "org.springframework=info"
  80. # - "com.sybotan=debug"
  81. # - "org.apache.activemq=debug"
  82. properties:
  83. #文件服务器配置
  84. fileService:
  85. # 基本属性
  86. url: http://api.sagacloud.cn/dp-auxiliary/image-service/ # http://47.93.33.207:28888/image-service/ #http://adm.sagacloud.cn/image-service/
  87. #url: http://image-service:8080/
  88. systemId: revit
  89. secret: 63afbef6906c342b
  90. dir: model
  91. baseGraph: base
  92. report: report
  93. export: export
  94. # 配置文件引用的属性
  95. suffixWithSecret: ?systemId=${properties.fileService.systemId}&secret=${properties.fileService.secret}
  96. suffix: ?systemId=${properties.fileService.systemId}
  97. # 程序中会用到的
  98. uploadPath: ${properties.fileService.url}common/file_upload${properties.fileService.suffixWithSecret}&overwrite=true&key=${properties.fileService.dir}/
  99. baseGraphPath: ${properties.fileService.url}common/file_upload${properties.fileService.suffixWithSecret}&overwrite=true&key=${properties.fileService.baseGraph}/
  100. reportPath: ${properties.fileService.url}common/file_upload${properties.fileService.suffixWithSecret}&overwrite=true&key=${properties.fileService.report}/
  101. exportPath: ${properties.fileService.url}common/file_upload${properties.fileService.suffixWithSecret}&overwrite=true&key=${properties.fileService.export}/
  102. downloadPath: ${properties.fileService.url}common/file_get${properties.fileService.suffix}&key=${properties.fileService.dir}/
  103. reportDownloadPath: ${properties.fileService.url}common/file_get${properties.fileService.suffix}&key=${properties.fileService.report}/
  104. exportDownloadPath: ${properties.fileService.url}common/file_get${properties.fileService.suffix}&key=${properties.fileService.export}/
  105. renamePath: ${properties.fileService.url}common/file_key_change${properties.fileService.suffixWithSecret}
  106. deletePath: ${properties.fileService.url}common/files_delete${properties.fileService.suffixWithSecret}
  107. registerMultipartUpload: ${properties.fileService.url}common/register_multipart_upload${properties.fileService.suffixWithSecret}&overwrite=true&key=${properties.fileService.dir}/
  108. mergeMultipartUpload: ${properties.fileService.url}common/merge_multipart${properties.fileService.suffixWithSecret}&uploadId=
  109. scheduler:
  110. #url: http://82.157.26.241:8080/
  111. url: http://127.0.0.1:8877/
  112. createTask: ${properties.scheduler.url}task/create
  113. queryTask: ${properties.scheduler.url}task/query
  114. queryTaskResult: ${properties.scheduler.url}result/query
  115. createDownload: ${properties.scheduler.url}download/create
  116. datacenter:
  117. #url: http://39.105.112.36/datacenter/
  118. url: http://127.0.0.1:8876/
  119. # 设备相关接口
  120. equipCreate: ${properties.datacenter.url}object/equip/create
  121. equipDelete: ${properties.datacenter.url}object/equip/delete
  122. equipQuery: ${properties.datacenter.url}object/equip/query
  123. equipUpdate: ${properties.datacenter.url}object/equip/update
  124. # 元空间相关接口
  125. ispaceCreate: ${properties.datacenter.url}object/ispace/create
  126. ispaceDelete: ${properties.datacenter.url}object/ispace/delete
  127. ispaceQuery: ${properties.datacenter.url}object/ispace/query
  128. ispaceUpdate: ${properties.datacenter.url}object/ispace/update
  129. # 空间相关接口
  130. spaceUpdate: ${properties.datacenter.url}object/zone/update
  131. # 部件相关接口
  132. componentCreate: ${properties.datacenter.url}object/component/create
  133. componentDelete: ${properties.datacenter.url}object/component/delete
  134. componentQuery: ${properties.datacenter.url}object/component/query
  135. componentUpdate: ${properties.datacenter.url}object/component/update
  136. # 楼层相关接口
  137. floorQuery: ${properties.datacenter.url}object/floor/query
  138. floorUpdate: ${properties.datacenter.url}object/floor/update
  139. floorCreate: ${properties.datacenter.url}object/floor/create
  140. # 绑定楼层接口
  141. floorBind: ${properties.datacenter.url}rel/update/equip-ispace
  142. # # 资产接口
  143. # propertyQuery: ${properties.datacenter.url}object/property/query
  144. # propertyUpdate: ${properties.datacenter.url}object/property/update
  145. # 同步构件接口
  146. windowCreate: ${properties.datacenter.url}window/create_ignore
  147. vwallCreate: ${properties.datacenter.url}vwall/create_ignore
  148. doorCreate: ${properties.datacenter.url}door/create_ignore
  149. message:
  150. url: http://127.0.0.1:8879/
  151. # 发送消息接口
  152. createPath: ${properties.message.url}message/create