application.yml 2.3 KB

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