application.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. spring:
  2. servlet:
  3. multipart:
  4. max-file-size: 1024MB
  5. max-request-size: 1024MB
  6. enabled: true
  7. application:
  8. name: nb
  9. profiles:
  10. active: prod
  11. jackson:
  12. time-zone: GMT+8
  13. flyway:
  14. enabled: false
  15. server:
  16. port: 9090
  17. servlet:
  18. context-path: /api
  19. undertow:
  20. accesslog:
  21. enabled: false
  22. max-http-post-size: -1
  23. buffer-size: 1024
  24. direct-buffers: true
  25. threads:
  26. io: 16
  27. worker: 256
  28. no-request-timeout: 3m
  29. tio:
  30. websocket:
  31. server:
  32. port: 9000
  33. #心跳检测在业务层面自定义进行 ms 毫秒级 按照最后一次接受数据包算 20s
  34. heartbeat-timeout: 20000
  35. #是否支持集群,集群开启需要redis
  36. cluster:
  37. enabled: false
  38. # Sa-Token配置
  39. sa-token:
  40. # token名称 (同时也是cookie名称)
  41. token-name: Authorization
  42. # token有效期,单位s 默认30天, -1代表永不过期
  43. timeout: 2592000
  44. # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒 一天
  45. activity-timeout: -1
  46. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  47. is-concurrent: true
  48. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  49. is-share: false
  50. # token风格
  51. token-style: simple-uuid
  52. # 是否输出操作日志
  53. is-log: false
  54. # 是否从cookie读取token
  55. is-read-cookie: false
  56. # 是否打开续签
  57. auto-renew: true
  58. logging:
  59. level:
  60. springfox: error
  61. com.nb: info
  62. config: classpath:logback-spring.xml
  63. file:
  64. path: ./logs
  65. logback:
  66. rollingpolicy:
  67. max-file-size: 100MB
  68. max-history: 15
  69. clean-history-on-start: true
  70. file-name-pattern: ${LOG_FILE}.%d{yyyy-MM-dd}.%i.gz
  71. charset:
  72. console: UTF-8
  73. mybatis-plus:
  74. mapperLocations: classpath*:mapper/**/*Mapper.xml
  75. checkConfigLocation: false
  76. global-config:
  77. banner: false
  78. enableSqlRunner: false
  79. dbConfig:
  80. idType: ASSIGN_ID
  81. logic-delete-field: isDelete
  82. logic-not-delete-value: 0
  83. logic-delete-value: 1
  84. configuration:
  85. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  86. log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
  87. default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler
  88. cache-enabled: false
  89. type-aliases-package: com.nb.bus.entity
  90. captcha:
  91. enable: true
  92. width: 140
  93. height: 38
  94. #验证码过期时间 5min
  95. expire: 300
  96. management:
  97. endpoints:
  98. web:
  99. exposure:
  100. include: heapdump,metrics
  101. yixinqian:
  102. baseUrl: http://192.168.188.169:8091
  103. appId: 1753176443000
  104. appKey: 82bdcf8ea9ae053e7b30a6a5633466d6
  105. tokenExpire: 3600