application-docker.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. server:
  2. port: 8081
  3. servlet:
  4. context-path:
  5. spring:
  6. web:
  7. resources:
  8. static-locations: classpath:/static/,classpath:/META-INF/resources/,classpath:/META-INF/resources/webjars/,file:${gc.starter.file.basePath},file:${gc.starter.file.uiPath}
  9. mvc:
  10. throw-exception-if-no-handler-found: true
  11. # 静态资源访问接口前缀
  12. static-path-pattern: /dataroom/**
  13. servlet:
  14. multipart:
  15. # 配置上传下载文件的最大值
  16. max-file-size: 500MB
  17. max-request-size: 500MB
  18. datasource:
  19. type: com.alibaba.druid.pool.DruidDataSource
  20. driverClassName: org.h2.Driver
  21. # 文件模式,保存到当前目录下的h2DBData.mv.db
  22. url: jdbc:h2:file:/db/h2DBData # jdbc:h2:mem:test
  23. username: root
  24. password: ${DB_PASSWORD:123456}
  25. schema: classpath:init-h2.sql
  26. gc:
  27. starter:
  28. file:
  29. # 一个存储文件的绝对路径,需要有写入权限
  30. basePath: /data
  31. # 启动服务的访问地址
  32. urlPrefix: http://${IP:127.0.0.1}:${PORT:${server.port}}${server.servlet.context-path}/dataroom
  33. # docker启动时,前端包所在的路径
  34. uiPath: /app/dataRoom/ui