application.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. # 项目相关配置
  2. yijia:
  3. # 名称
  4. name: Yijia
  5. # 版本
  6. version: 1.0.1
  7. # 版权年份
  8. copyrightYear: 2021
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径
  12. #正式服务器
  13. profile: /home/uploadfile/images
  14. imageurl: http://image.huijy.net:8088/images
  15. #测试服务器
  16. #profile: /home/uploadfile/images
  17. #imageurl: http://upload.huijy.net:8088/images
  18. #本地测试服务
  19. # profile: D:/img
  20. #图片地址
  21. ##imageUrl: http://localhost:8080/profile
  22. # 获取ip地址开关
  23. addressEnabled: false
  24. # 验证码开关
  25. captchaEnabled: false
  26. # 验证码类型 math 数组计算 char 字符
  27. captchaType: math
  28. # 开发环境配置
  29. server:
  30. # 服务器的HTTP端口,默认为8080
  31. port: 8080
  32. servlet:
  33. # 应用的访问路径
  34. context-path: /
  35. tomcat:
  36. # tomcat的URI编码
  37. uri-encoding: UTF-8
  38. # tomcat最大线程数,默认为200
  39. max-threads: 800
  40. # Tomcat启动初始化的线程数,默认值25
  41. min-spare-threads: 30
  42. # 日志配置
  43. logging:
  44. level:
  45. com.yijia: debug
  46. org.springframework: warn
  47. # Spring配置
  48. spring:
  49. # 资源信息
  50. messages:
  51. # 国际化资源文件路径
  52. basename: i18n/messages
  53. profiles:
  54. active: druid
  55. # 文件上传
  56. servlet:
  57. multipart:
  58. # 单个文件大小
  59. max-file-size: 10MB
  60. # 设置总上传的文件大小
  61. max-request-size: 20MB
  62. # 服务模块
  63. devtools:
  64. restart:
  65. # 热部署开关
  66. enabled: true
  67. # redis 配置
  68. redis:
  69. # 地址
  70. host: localhost
  71. # 端口,默认为6379
  72. port: 6379
  73. # 密码
  74. password:
  75. # 连接超时时间
  76. timeout: 10s
  77. lettuce:
  78. pool:
  79. # 连接池中的最小空闲连接
  80. min-idle: 0
  81. # 连接池中的最大空闲连接
  82. max-idle: 8
  83. # 连接池的最大数据库连接数
  84. max-active: 8
  85. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  86. max-wait: -1ms
  87. # token配置
  88. token:
  89. # 令牌自定义标识
  90. header: Authorization
  91. # 令牌密钥
  92. secret: abcdefghijklmnopqrstuvwxyz
  93. # 令牌有效期(默认30分钟)
  94. expireTime: 3000
  95. # MyBatis配置
  96. mybatis:
  97. # 搜索指定包别名
  98. typeAliasesPackage: com.yijia.**.domain
  99. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  100. mapperLocations: classpath*:mapper/**/*Mapper.xml
  101. # 加载全局的配置文件
  102. configLocation: classpath:mybatis/mybatis-config.xml
  103. # PageHelper分页插件
  104. pagehelper:
  105. helperDialect: mysql
  106. reasonable: true
  107. supportMethodsArguments: true
  108. params: count=countSql
  109. # Swagger配置
  110. swagger:
  111. # 是否开启swagger
  112. enabled: true
  113. # 请求前缀
  114. pathMapping: /dev-api
  115. # 防止XSS攻击
  116. xss:
  117. # 过滤开关
  118. enabled: true
  119. # 排除链接(多个用逗号分隔)
  120. excludes: /system/notice/*
  121. # 匹配链接
  122. urlPatterns: /system/*,/monitor/*,/tool/*