application.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. server:
  2. port: 8083
  3. spring:
  4. application:
  5. name: forecast-device-gateway
  6. # 资源信息
  7. messages:
  8. # 国际化资源文件路径
  9. basename: i18n/messages
  10. profiles:
  11. active: druid
  12. # 文件上传
  13. servlet:
  14. multipart:
  15. # 单个文件大小
  16. max-file-size: 10MB
  17. # 设置总上传的文件大小
  18. max-request-size: 20MB
  19. # 服务模块
  20. devtools:
  21. restart:
  22. # 热部署开关
  23. enabled: true
  24. data:
  25. # redis 配置
  26. redis:
  27. # 地址
  28. host: localhost
  29. # 端口,默认为6379
  30. port: 6379
  31. # 数据库索引
  32. database: 4
  33. # 密码
  34. password:
  35. # 连接超时时间
  36. timeout: 10s
  37. lettuce:
  38. pool:
  39. # 连接池中的最小空闲连接
  40. min-idle: 0
  41. # 连接池中的最大空闲连接
  42. max-idle: 8
  43. # 连接池的最大数据库连接数
  44. max-active: 8
  45. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  46. max-wait: -1ms
  47. # MyBatis配置
  48. mybatis:
  49. # 搜索指定包别名
  50. typeAliasesPackage: cn.oleauto.**.domain
  51. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  52. mapperLocations: classpath*:mapper/**/*Mapper.xml
  53. # 加载全局的配置文件
  54. configLocation: classpath:mybatis/mybatis-config.xml
  55. # 开启mybatis-plus自带SQL打印
  56. #mybatis-plus:
  57. # configuration:
  58. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  59. #logging:
  60. # level:
  61. # cn.oleauto: DEBUG
  62. # PageHelper分页插件
  63. pagehelper:
  64. helperDialect: postgresql
  65. supportMethodsArguments: true
  66. params: count=countSql
  67. app:
  68. weather:
  69. interval-ms: 300000
  70. electricity:
  71. interval-ms: 300000