application.yml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. # 项目相关配置
  2. aidex:
  3. # 名称 水上公交
  4. name: water_bus
  5. # 版本
  6. version: 3.3.0
  7. # 版权年份
  8. copyrightYear: 2024
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/aidex/uploadPath,Linux配置 /home/aidex/uploadPath)
  12. profile: D:/aidex/uploadPath
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # 开发环境配置
  18. server:
  19. # 服务器的HTTP端口,默认为8080
  20. port: 18080
  21. servlet:
  22. # 应用的访问路径
  23. context-path: /
  24. tomcat:
  25. # tomcat的URI编码
  26. uri-encoding: UTF-8
  27. # 连接数满后的排队数,默认为100
  28. accept-count: 1000
  29. threads:
  30. # tomcat最大线程数,默认为200
  31. max: 800
  32. # Tomcat启动初始化的线程数,默认值10
  33. min-spare: 100
  34. # 日志配置
  35. logging:
  36. level:
  37. com.aidex: info
  38. org.springframework: info
  39. # 用户配置
  40. user:
  41. password:
  42. # 密码最大错误次数
  43. maxRetryCount: 5
  44. # 密码锁定时间(默认10分钟)
  45. lockTime: 10
  46. # Spring配置
  47. spring:
  48. # 资源信息
  49. messages:
  50. # 国际化资源文件路径
  51. basename: i18n/messages
  52. profiles:
  53. active: druid
  54. # 文件上传
  55. servlet:
  56. multipart:
  57. # 单个文件大小
  58. max-file-size: 10MB
  59. # 设置总上传的文件大小
  60. max-request-size: 20MB
  61. # 服务模块
  62. devtools:
  63. restart:
  64. # 热部署开关
  65. enabled: true
  66. # redis 配置
  67. redis:
  68. # 地址
  69. host: 127.0.0.1
  70. # 端口,默认为6379
  71. port: 16379
  72. # 数据库索引
  73. database: 0
  74. # 密码
  75. # password: 12345678
  76. # 连接超时时间
  77. timeout: 10s
  78. lettuce:
  79. pool:
  80. # 连接池中的最小空闲连接
  81. min-idle: 0
  82. # 连接池中的最大空闲连接
  83. max-idle: 8
  84. # 连接池的最大数据库连接数
  85. max-active: 8
  86. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  87. max-wait: -1ms
  88. # token配置
  89. token:
  90. # 令牌自定义标识
  91. header: Authorization
  92. # 令牌密钥
  93. secret: abcdefghijklmnopqrstuvwxyz
  94. # 令牌有效期(默认30分钟)
  95. expireTime: 30
  96. # 是否允许账户多终端同时登录(true允许 false不允许)
  97. soloLogin: true
  98. # MyBatis配置
  99. mybatis:
  100. # 搜索指定包别名
  101. typeAliasesPackage: com.aidex.**.domain,com.aidex.**.entity,com.aidex.**.po
  102. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  103. mapperLocations: classpath*:mapper/**/*Mapper.xml,classpath*:com/aidex/**/mapper/*Mapper.xml
  104. # 加载全局的配置文件
  105. configLocation: classpath:mybatis/mybatis-config.xml
  106. # 加载全局的配置文件
  107. dbName: oracle
  108. # 是否显示拦截器输出sql
  109. isShowMyBatisSql: true
  110. # PageHelper分页插件
  111. pagehelper:
  112. helperDialect: mysql
  113. supportMethodsArguments: true
  114. params: count=countSql
  115. # Swagger配置
  116. swagger:
  117. # 是否开启swagger
  118. enabled: false
  119. # 请求前缀
  120. pathMapping: /api
  121. # 防止XSS攻击
  122. xss:
  123. # 过滤开关
  124. enabled: true
  125. # 排除链接(多个用逗号分隔)
  126. excludes: /system/notice
  127. # 匹配链接
  128. urlPatterns: /system/*,/monitor/*,/tool/*
  129. wx:
  130. miniapp:
  131. appid: wx89863f6cc3943d04 #微信小程序的appid
  132. secret: 1d8a4519dd92e626e183c4c7e2dad14e #微信小程序的Secret
  133. msgDataFormat: JSON
  134. token:
  135. aesKey: