application.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. server:
  2. #端口号
  3. port: 8080
  4. servlet:
  5. session:
  6. timeout: 36000 #登录超时-秒
  7. context-path: /jshERP-boot #服务路径
  8. tomcat:
  9. basedir: /opt/tmp/tomcat #文件上传临时路径
  10. #mybatis-plus配置
  11. mybatis-plus:
  12. # 对应的 XML 文件位置
  13. mapperLocations: classpath*:mapper_xml/*.xml
  14. #租户对应的角色id
  15. manage:
  16. roleId: 10
  17. tenant:
  18. userNumLimit: 1000000 #租户允许创建的用户数
  19. tryDayLimit: 3000 #租户允许试用的天数
  20. #插件配置
  21. plugin:
  22. runMode: prod
  23. pluginPath: plugins
  24. pluginConfigFilePath: pluginConfig
  25. #文件上传方式 1-本机 2-oss
  26. file:
  27. uploadType: 1
  28. path: /opt/jshERP/upload #文件上传根目录
  29. spring:
  30. #数据库连接
  31. datasource:
  32. url: jdbc:mysql://localhost:3306/jsh_erp?useUnicode=true&characterEncoding=utf8&useCursorFetch=true&defaultFetchSize=500&allowMultiQueries=true&rewriteBatchedStatements=true&useSSL=false
  33. driverClassName: com.mysql.cj.jdbc.Driver
  34. username: root
  35. password: 123456
  36. # Redis
  37. redis:
  38. host: 127.0.0.1
  39. port: 6379
  40. password: foobared
  41. servlet:
  42. #文件上传限制(byte)
  43. multipart:
  44. max-file-size: 10485760
  45. max-request-size: 10485760