application.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. server:
  2. shutdown: graceful
  3. port: 8083
  4. servlet:
  5. context-path: /api
  6. #mybatis配置
  7. mybatis-plus:
  8. mapper-locations: classpath*:com/gitee/sunchenbin/mybatis/actable/mapping/*/*.xml,classpath*:mapper/*/*.xml
  9. configuration:
  10. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  11. global-config:
  12. db-config:
  13. logic-delete-value: 1
  14. logic-delete-field: deleted
  15. spring:
  16. cache:
  17. type: redis
  18. redis:
  19. # 7天
  20. time-to-live: 604800000
  21. profiles:
  22. include: doc,sys,stream
  23. active: dev
  24. jackson:
  25. date-format: yyyy-MM-dd HH:mm:ss
  26. time-zone: GMT-8
  27. tr:
  28. oauth2:
  29. psw:
  30. client-id: 1234
  31. client-secret: 7896
  32. satoken:
  33. enable: true
  34. ignore-urls:
  35. - /actuator/**
  36. - /druid/**
  37. - /*.html
  38. - /**/*.html
  39. - /swagger-resources/**
  40. - /swagger-ui/**
  41. - /v2/api-docs/*
  42. - /v2/api-docs
  43. - /webjars/**
  44. - /oauth2/psw/**
  45. tenant:
  46. ignore-tables:
  47. - gen_config
  48. - gen_basic
  49. - sys_menu
  50. - sys_role_menu
  51. - sys_dict
  52. - sys_dict_item
  53. # 租户模块
  54. - sys_tenant
  55. - sys_tenant_package
  56. - sys_tenant_package_menu
  57. - sys_user_role
  58. - sys_portal_menu
  59. - sys_user_portal
  60. # 短信模块
  61. - sys_sms_temp
  62. - sys_sms_channel
  63. - sys_sms_log
  64. # 编号策略
  65. - sys_numbering_strategy
  66. sa-token:
  67. is-read-header: true
  68. # token名称 (同时也是cookie名称)
  69. token-name: Authorization
  70. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  71. is-concurrent: true
  72. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  73. is-share: true
  74. # 是否打开续签
  75. auto-renew: true
  76. # 是否输出操作日志
  77. is-log: false
  78. # 同一账号登录数量不做限制
  79. max-login-count: -1
  80. oauth2:
  81. is-password: true
  82. # 30天
  83. access-token-timeout: ${sa-token.timeout}
  84. # 1天
  85. refresh-token-timeout: 2592000
  86. timeout: 86400