12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- # spring配置
- spring:
- mvc:
- pathmatch:
- matching-strategy: ant_path_matcher
- redis:
- host: 172.192.10.105
- port: 30013
- password:
- datasource:
- druid:
- stat-view-servlet:
- enabled: true
- loginUsername: admin
- loginPassword: 123456
- dynamic:
- druid:
- initial-size: 5
- min-idle: 5
- maxActive: 20
- maxWait: 60000
- timeBetweenEvictionRunsMillis: 60000
- minEvictableIdleTimeMillis: 300000
- validationQuery: SELECT 1 FROM DUAL
- testWhileIdle: true
- testOnBorrow: false
- testOnReturn: false
- poolPreparedStatements: true
- maxPoolPreparedStatementPerConnectionSize: 20
- filters: stat,slf4j
- connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
- datasource:
- # 主库数据源
- master:
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://172.192.10.105:30002/ems_ct?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
- username: root
- password: root
- # 从库数据源
- # slave:
- # username:
- # password:
- # url:
- # driver-class-name:
- general-data:
- api-key: 4988803c28e1461b999054255a0b311fga37G3RPI1Bc2uR1
- server: 101.133.108.113:9000
- weather:
- adcode: 321200
- rt:
- cron: 0 0 0/1 * * ?
- api-addr: http://${general-data.server}/general-data/weather/getWeather
- forecast:
- cron: 0 15 8 * * ?
- api-addr: http://${general-data.server}/general-data/weather/getWeatherForecast
- date:
- cron: 0 0 12 1 * ?
- api-addr: http://${general-data.server}/general-data/date/getAttrs
- analysis-task:
- eco-analysis:
- area-codes: 321283124S3001,321283124S3002
- cron: 0 0 3 * * ?
- pv-forecast:
- area-codes: 321283124S3001,321283124S3002,321283124S3003
- forecastDays: 5
- cron: 0 30 8 * * ?
- elec-consume-forecast:
- cron: 0 0 2 * * ?
- forecastDays: 5
- area-codes: 321283124S3001,321283124S3002
- carbon-calculation:
- cron: 0 0 2 * * ?
- area-codes: 321283124S3001,321283124S3002
- carbon-forecast:
- cron: 0 10 2 1 * ?
- area-codes: 321283124S3001,321283124S3002
- # mybatis配置
- mybatis:
- # 搜索指定包别名
- typeAliasesPackage: com.ruoyi.ems.**.domain;com.ruoyi.quartz.**.domain
- # 配置mapper的扫描,找到所有的mapper.xml映射文件
- mapperLocations: classpath*:mapper/**/*.xml
- configuration:
- map-underscore-to-camel-case: true
- # swagger配置
- swagger:
- title: 能源模块接口文档
- enabled: true
|