application-local.yml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # spring配置
  2. spring:
  3. mvc:
  4. pathmatch:
  5. matching-strategy: ant_path_matcher
  6. redis:
  7. host: 172.192.10.105
  8. port: 30013
  9. password:
  10. datasource:
  11. druid:
  12. stat-view-servlet:
  13. enabled: true
  14. loginUsername: admin
  15. loginPassword: 123456
  16. dynamic:
  17. druid:
  18. initial-size: 5
  19. min-idle: 5
  20. maxActive: 20
  21. maxWait: 60000
  22. timeBetweenEvictionRunsMillis: 60000
  23. minEvictableIdleTimeMillis: 300000
  24. validationQuery: SELECT 1 FROM DUAL
  25. testWhileIdle: true
  26. testOnBorrow: false
  27. testOnReturn: false
  28. poolPreparedStatements: true
  29. maxPoolPreparedStatementPerConnectionSize: 20
  30. filters: stat,slf4j
  31. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  32. datasource:
  33. # 主库数据源
  34. master:
  35. driver-class-name: com.mysql.cj.jdbc.Driver
  36. url: jdbc:mysql://172.192.10.105:30002/ems_ct?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  37. username: root
  38. password: root
  39. # 从库数据源
  40. # slave:
  41. # username:
  42. # password:
  43. # url:
  44. # driver-class-name:
  45. general-data:
  46. api-key: 4988803c28e1461b999054255a0b311fga37G3RPI1Bc2uR1
  47. server: 101.133.108.113:9000
  48. weather:
  49. adcode: 321200
  50. rt:
  51. cron: 0 0 0/1 * * ?
  52. api-addr: http://${general-data.server}/general-data/weather/getWeather
  53. forecast:
  54. cron: 0 15 8 * * ?
  55. api-addr: http://${general-data.server}/general-data/weather/getWeatherForecast
  56. date:
  57. cron: 0 0 12 1 * ?
  58. api-addr: http://${general-data.server}/general-data/date/getAttrs
  59. analysis-task:
  60. eco-analysis:
  61. area-codes: 321283124S3001,321283124S3002
  62. cron: 0 0 3 * * ?
  63. pv-forecast:
  64. area-codes: 321283124S3001,321283124S3002,321283124S3003
  65. forecastDays: 5
  66. cron: 0 30 8 * * ?
  67. elec-consume-forecast:
  68. cron: 0 0 2 * * ?
  69. forecastDays: 5
  70. area-codes: 321283124S3001,321283124S3002
  71. carbon-calculation:
  72. cron: 0 0 2 * * ?
  73. area-codes: 321283124S3001,321283124S3002
  74. carbon-forecast:
  75. cron: 0 10 2 1 * ?
  76. area-codes: 321283124S3001,321283124S3002
  77. # mybatis配置
  78. mybatis:
  79. # 搜索指定包别名
  80. typeAliasesPackage: com.ruoyi.ems.**.domain;com.ruoyi.quartz.**.domain
  81. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  82. mapperLocations: classpath*:mapper/**/*.xml
  83. configuration:
  84. map-underscore-to-camel-case: true
  85. # swagger配置
  86. swagger:
  87. title: 能源模块接口文档
  88. enabled: true