123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- # 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: 139.224.116.141: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
- forecast-task:
- area-codes: 321283124S3001,321283124S3002,321283124S3003
- pv-forecast:
- forecastDays: 5
- cron: 0 30 8 * * ?
- # 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
|