application.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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.nologging.NoLoggingImpl
  11. global-config:
  12. db-config:
  13. logic-delete-value: 1
  14. logic-delete-field: deleted
  15. logic-not-delete-value: 0
  16. type-handlers-package: cn.tr.plugin.mybatis.config.handler.global
  17. spring:
  18. cache:
  19. type: redis
  20. redis:
  21. # 7天
  22. time-to-live: 604800000
  23. profiles:
  24. include: doc,sys,stream
  25. active: dev
  26. jackson:
  27. date-format: yyyy-MM-dd HH:mm:ss
  28. flyway:
  29. enabled: true
  30. encoding: UTF-8
  31. # 迁移脚本位置
  32. locations:
  33. - classpath:db/migration/pg
  34. sql-migration-suffixes: .sql
  35. placeholder-replacement: false
  36. servlet:
  37. multipart:
  38. max-file-size: 10MB
  39. max-request-size: 20MB
  40. tr:
  41. storage:
  42. previewUrl: http://192.168.100.236:8012/onlinePreview?url=
  43. oauth2:
  44. psw:
  45. client-id: smart
  46. client-secret: tuoren123
  47. satoken:
  48. enable: true
  49. ignore-urls:
  50. - /error
  51. - /actuator/**
  52. - /druid/**
  53. - /*.html
  54. - /**/*.html
  55. - /swagger-resources/**
  56. - /swagger-ui/**
  57. - /v2/api-docs/*
  58. - /v2/api-docs
  59. - /webjars/**
  60. - /oauth2/psw/**
  61. - /download/file/**
  62. tenant:
  63. ignore-tables:
  64. - gen_config
  65. - gen_basic
  66. - sys_menu
  67. - sys_role_menu
  68. - sys_dict
  69. - sys_dict_item
  70. - sys_user_position
  71. # 租户模块
  72. - sys_tenant
  73. - sys_tenant_package
  74. - sys_tenant_package_menu
  75. - sys_user_role
  76. - sys_portal_menu
  77. - sys_user_portal
  78. # 短信模块
  79. - sys_sms_temp
  80. - sys_sms_channel
  81. - sys_sms_log
  82. # 编号策略
  83. - sys_numbering_strategy
  84. # 任务调度模块
  85. - sys_job
  86. - sys_job_log
  87. # 存储模块
  88. - sys_storage_config
  89. - sys_storage_file
  90. # 导入导出模块
  91. - sys_export_sheet
  92. - sys_export_row
  93. # 数据对接模块
  94. - joint_datasource
  95. ignore-urls:
  96. - /oauth2/psw/token
  97. - /sys/log/**
  98. - /wx/user/**
  99. enable: true
  100. sa-token:
  101. is-read-header: true
  102. # token名称 (同时也是cookie名称)
  103. token-name: Authorization
  104. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  105. is-concurrent: true
  106. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  107. is-share: false
  108. # 是否打开续签
  109. auto-renew: true
  110. # 是否输出操作日志
  111. is-log: false
  112. # 同一账号登录数量不做限制
  113. max-login-count: -1
  114. oauth2:
  115. is-password: true
  116. # 30天
  117. access-token-timeout: ${sa-token.timeout}
  118. # 1天
  119. refresh-token-timeout: -1
  120. timeout: -1