| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- server:
- port: 8083
- spring:
- application:
- name: forecast-device-gateway
- # 资源信息
- messages:
- # 国际化资源文件路径
- basename: i18n/messages
- profiles:
- active: druid
- # 文件上传
- servlet:
- multipart:
- # 单个文件大小
- max-file-size: 10MB
- # 设置总上传的文件大小
- max-request-size: 20MB
- # 服务模块
- devtools:
- restart:
- # 热部署开关
- enabled: true
- data:
- # redis 配置
- redis:
- # 地址
- host: localhost
- # 端口,默认为6379
- port: 6379
- # 数据库索引
- database: 4
- # 密码
- password:
- # 连接超时时间
- timeout: 10s
- lettuce:
- pool:
- # 连接池中的最小空闲连接
- min-idle: 0
- # 连接池中的最大空闲连接
- max-idle: 8
- # 连接池的最大数据库连接数
- max-active: 8
- # #连接池最大阻塞等待时间(使用负值表示没有限制)
- max-wait: -1ms
- # MyBatis配置
- mybatis:
- # 搜索指定包别名
- typeAliasesPackage: cn.oleauto.**.domain
- # 配置mapper的扫描,找到所有的mapper.xml映射文件
- mapperLocations: classpath*:mapper/**/*Mapper.xml
- # 加载全局的配置文件
- configLocation: classpath:mybatis/mybatis-config.xml
- # 开启mybatis-plus自带SQL打印
- #mybatis-plus:
- # configuration:
- # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- #logging:
- # level:
- # cn.oleauto: DEBUG
- # PageHelper分页插件
- pagehelper:
- helperDialect: postgresql
- supportMethodsArguments: true
- params: count=countSql
- app:
- weather:
- interval-ms: 300000
- electricity:
- interval-ms: 300000
|