application.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. # 项目相关配置
  2. fs:
  3. # 名称
  4. name: fs
  5. # 版本
  6. version: 1.1.0
  7. # 版权年份
  8. copyrightYear: 2021
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/fs/uploadPath,Linux配置 /home/fs/uploadPath)
  12. profile: c:/fs/uploadPath
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # 开发环境配置
  18. server:
  19. # 服务器的HTTP端口,默认为8080
  20. port: 8008
  21. servlet:
  22. # 应用的访问路径
  23. context-path: /
  24. tomcat:
  25. # tomcat的URI编码
  26. uri-encoding: UTF-8
  27. # tomcat最大线程数,默认为200
  28. max-threads: 800
  29. # Tomcat启动初始化的线程数,默认值25
  30. min-spare-threads: 30
  31. # 日志配置
  32. logging:
  33. level:
  34. com.fs: debug
  35. org.springframework: warn
  36. # Spring配置
  37. spring:
  38. # 资源信息
  39. messages:
  40. # 国际化资源文件路径
  41. basename: i18n/messages
  42. profiles:
  43. # active: dev
  44. active: druid-yjf
  45. include: config
  46. mvc:
  47. async:
  48. request-timeout: 30000
  49. # 文件上传
  50. servlet:
  51. multipart:
  52. # 单个文件大小
  53. max-file-size: 3GB
  54. # 设置总上传的文件大小
  55. max-request-size: 3GB
  56. # 服务模块
  57. devtools:
  58. restart:
  59. # 热部署开关
  60. enabled: true
  61. # token配置
  62. token:
  63. # 令牌自定义标识
  64. header: Authorization
  65. # 令牌密钥
  66. secret: abcdefghijklmnopqrstuvwxyz
  67. # 令牌有效期(默认30分钟)
  68. expireTime: 180
  69. mybatis-plus:
  70. # 搜索指定包别名
  71. typeAliasesPackage: com.fs.**.domain,com.fs.**.bo
  72. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  73. mapperLocations: classpath*:/mapper/**/*.xml
  74. configLocation: classpath:mybatis/mybatis-config.xml
  75. # 全局配置
  76. global-config:
  77. db-config:
  78. # 主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  79. idType: AUTO
  80. # 字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  81. fieldStrategy: NOT_EMPTY
  82. banner: false
  83. # 配置
  84. configuration:
  85. # 驼峰式命名
  86. mapUnderscoreToCamelCase: true
  87. # 全局映射器启用缓存
  88. cacheEnabled: true
  89. # 配置默认的执行器
  90. defaultExecutorType: REUSE
  91. # 允许 JDBC 支持自动生成主键
  92. useGeneratedKeys: true
  93. # MyBatis配置
  94. mybatis:
  95. # 搜索指定包别名
  96. typeAliasesPackage: com.fs.**.domain
  97. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  98. mapperLocations: classpath*:mapper/**/*Mapper.xml
  99. # 加载全局的配置文件
  100. configLocation: classpath:mybatis/mybatis-config.xml
  101. # PageHelper分页插件
  102. pagehelper:
  103. helperDialect: mysql
  104. supportMethodsArguments: true
  105. params: count=countSql
  106. # Swagger配置
  107. swagger:
  108. # 是否开启swagger
  109. enabled: false
  110. # 请求前缀
  111. pathMapping: /dev-api
  112. # 防止XSS攻击
  113. xss:
  114. # 过滤开关
  115. enabled: true
  116. # 排除链接(多个用逗号分隔)
  117. excludes: /system/notice,/system/config/*
  118. # 匹配链接
  119. urlPatterns: /system/*,/monitor/*,/tool/*
  120. zhyf:
  121. url: https://zhyf-testController.jingpai.com