application.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. tr:
  27. storage:
  28. previewUrl: http://192.168.100.32:8012/onlinePreview?url=
  29. oauth2:
  30. psw:
  31. client-id: 1234
  32. client-secret: 7896
  33. satoken:
  34. enable: true
  35. ignore-urls:
  36. - /error
  37. - /actuator/**
  38. - /druid/**
  39. - /*.html
  40. - /**/*.html
  41. - /swagger-resources/**
  42. - /swagger-ui/**
  43. - /v2/api-docs/*
  44. - /v2/api-docs
  45. - /webjars/**
  46. - /oauth2/psw/**
  47. - /download/file/**
  48. tenant:
  49. ignore-tables:
  50. - gen_config
  51. - gen_basic
  52. - sys_menu
  53. - sys_role_menu
  54. - sys_dict
  55. - sys_dict_item
  56. # 租户模块
  57. - sys_tenant
  58. - sys_tenant_package
  59. - sys_tenant_package_menu
  60. - sys_user_role
  61. - sys_portal_menu
  62. - sys_user_portal
  63. # 短信模块
  64. - sys_sms_temp
  65. - sys_sms_channel
  66. - sys_sms_log
  67. # 编号策略
  68. - sys_numbering_strategy
  69. # 任务调度模块
  70. - sys_job
  71. - sys_job_log
  72. # 存储模块
  73. - sys_storage_config
  74. - sys_storage_file
  75. # 导入导出模块
  76. - sys_export_sheet
  77. - sys_export_row
  78. ignore-urls:
  79. - /oauth2/psw/token
  80. - /sys/log/**
  81. sa-token:
  82. is-read-header: true
  83. # token名称 (同时也是cookie名称)
  84. token-name: Authorization
  85. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  86. is-concurrent: true
  87. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  88. is-share: false
  89. # 是否打开续签
  90. auto-renew: true
  91. # 是否输出操作日志
  92. is-log: false
  93. # 同一账号登录数量不做限制
  94. max-login-count: -1
  95. oauth2:
  96. is-password: true
  97. # 30天
  98. access-token-timeout: ${sa-token.timeout}
  99. # 1天
  100. refresh-token-timeout: 2592000
  101. timeout: 86400