application.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. server:
  2. port: ${randomPort:9092}
  3. spring:
  4. application:
  5. name: elevator-data-analysis
  6. datasource:
  7. type: com.alibaba.druid.pool.DruidDataSource
  8. druid:
  9. initial-size: 5
  10. max-active: 40
  11. min-idle: 5
  12. max-wait: 60000
  13. validation-query: SELECT 1
  14. test-on-borrow: false
  15. test-on-return: false
  16. test-while-idle: true
  17. time-between-eviction-runs-millis: 60000
  18. remove-abandoned: true
  19. removeAbandonedTimeout: 1800
  20. log-abandoned: true
  21. driver-class-name: com.mysql.jdbc.Driver
  22. filters: stat
  23. username: ${elevatorDatasourceUserName:root}
  24. password: ${elevatorDatasourcePassword:Hycpb@123}
  25. url: ${elevatorDatasourceUrl:jdbc:mysql://127.0.0.1:3306/elevator?useUnicode=true&characterEncoding=UTF8&rewriteBatchedStatements=true&allowMultiQueries=true&amp}
  26. data:
  27. # mongodb配置
  28. mongodb:
  29. host: 127.0.0.1
  30. port: 27017
  31. #username: mongoUsername
  32. #password: mongoPassword
  33. database: elevator
  34. #uri: mongodb://root:inspur1234,@192.168.9.77:20000/elevator
  35. logging:
  36. level:
  37. org.mongodb.driver.protocol.command: DEBUG
  38. mybatis:
  39. # config-location: classpath:mybatis.xml
  40. configuration:
  41. map-underscore-to-camel-case: true
  42. #??mybatis?SQL??
  43. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  44. type-aliases-package: com.inspur.evedemo.pojo
  45. #type-handlers-package: com.inspur.idm.platform.mybatis.handler
  46. mapper-locations: classpath*:mapper/*.xml
  47. #健康度相关加减分控制
  48. health:
  49. lightWeight: 2 #轻微事故扣分
  50. lightAddWeight: 1 #轻微事故修复加分
  51. normalWeight: 10 #一般事故扣分
  52. normalAddWeight: 5 #一般事故修复后加分
  53. seriousWeight: 40 #较大事故扣分
  54. seriousAddWeight: 10 #较大事故修复后加分
  55. significantWeight: 50 #重大事故扣分
  56. significantAddWeight: 10 #重大事故修复后加分
  57. year0: 0 #使用0-5年电梯扣分分数
  58. year5: 5 #使用5-10年电梯扣分分数
  59. year10: 10 #使用10-15年电梯扣分分数
  60. year15: 30 #使用15年以上电梯扣分分数
  61. halfYearAddScore: 10 #发生较大重大事故后半年没发生事故加分
  62. comfort:
  63. tempWeight: 0.25 #温度权重系数
  64. humiWeight: 0.2 #湿度权重系数
  65. brWeight: 0.2 #亮度权重系数
  66. numWeight: 0.35 #乘梯人数权重系数
  67. jasypt:
  68. encryptor:
  69. algorithm: PBEWithMD5AndDES
  70. iv-generator-classname: org.jasypt.iv.NoIvGenerator
  71. password: ${sys_jasypt_passwd}