application.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  12. global-config:
  13. db-config:
  14. logic-delete-value: 1
  15. logic-delete-field: deleted
  16. logic-not-delete-value: 0
  17. type-handlers-package: cn.tr.plugin.mybatis.config.handler.global
  18. spring:
  19. cache:
  20. type: redis
  21. redis:
  22. # 7天
  23. time-to-live: 604800000
  24. profiles:
  25. include: doc,sys,stream,tianai,im
  26. active: dev
  27. jackson:
  28. date-format: yyyy-MM-dd HH:mm:ss
  29. flyway:
  30. enabled: true
  31. encoding: UTF-8
  32. # 迁移脚本位置
  33. locations:
  34. - classpath:db/migration/pg
  35. sql-migration-suffixes: .sql
  36. placeholder-replacement: false
  37. servlet:
  38. multipart:
  39. max-file-size: 10MB
  40. max-request-size: 20MB
  41. tr:
  42. storage:
  43. previewUrl: http://192.168.100.236:8012/onlinePreview?url=
  44. oauth2:
  45. psw:
  46. client-id: smart
  47. client-secret: tuoren123
  48. satoken:
  49. enable: true
  50. ignore-urls:
  51. - /error
  52. - /actuator/**
  53. - /druid/**
  54. - /*.html
  55. - /**/*.html
  56. - /swagger-resources/**
  57. - /swagger-ui/**
  58. - /v2/api-docs/*
  59. - /v2/api-docs
  60. - /webjars/**
  61. - /oauth2/psw/**
  62. - /download/file/**
  63. tenant:
  64. ignore-tables:
  65. - gen_config
  66. - gen_basic
  67. - sys_menu
  68. - sys_role_menu
  69. - sys_dict
  70. - sys_dict_item
  71. - sys_user_position
  72. # 租户模块
  73. - sys_tenant
  74. - sys_tenant_package
  75. - sys_tenant_package_menu
  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. # 即时通讯模块
  96. - im_msg_group
  97. - im_msg_received
  98. - im_msg_send
  99. - biz_infusion_clinic
  100. ignore-urls:
  101. - /oauth2/psw/token
  102. - /sys/log/**
  103. - /wx/user/**
  104. enable: true
  105. sa-token:
  106. is-read-header: true
  107. # token名称 (同时也是cookie名称)
  108. token-name: Authorization
  109. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  110. is-concurrent: true
  111. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  112. is-share: false
  113. # 是否打开续签
  114. auto-renew: true
  115. # 是否输出操作日志
  116. is-log: false
  117. # 同一账号登录数量不做限制
  118. max-login-count: -1
  119. oauth2:
  120. is-password: true
  121. # 30天
  122. access-token-timeout: ${sa-token.timeout}
  123. # 1天
  124. refresh-token-timeout: -1
  125. timeout: -1
  126. logging:
  127. config: classpath:log4j2.xml