application-docker.yml 1.1 KB

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