application.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. - /sse/stream
  64. tenant:
  65. ignore-tables:
  66. - gen_config
  67. - gen_basic
  68. - sys_menu
  69. - sys_role_menu
  70. - sys_dict
  71. - sys_dict_item
  72. - sys_user_position
  73. - sys_user
  74. # 租户模块
  75. - sys_tenant
  76. - sys_tenant_package
  77. - sys_tenant_package_menu
  78. - sys_portal_menu
  79. - sys_user_portal
  80. # 短信模块
  81. - sys_sms_temp
  82. - sys_sms_channel
  83. - sys_sms_log
  84. # 编号策略
  85. - sys_numbering_strategy
  86. # 任务调度模块
  87. - sys_job
  88. - sys_job_log
  89. # 存储模块
  90. - sys_storage_config
  91. - sys_storage_file
  92. # 导入导出模块
  93. - sys_export_sheet
  94. - sys_export_row
  95. # 数据对接模块
  96. - joint_datasource
  97. # 问卷模块
  98. - biz_question_group
  99. - biz_question_answer
  100. - biz_question
  101. # 疼痛评价
  102. - biz_pain_assessment
  103. # 即时通讯模块
  104. - im_msg_group
  105. - im_msg_received
  106. - im_msg_send
  107. - biz_infusion_clinic
  108. - biz_wx_user
  109. - biz_avatar
  110. ignore-urls:
  111. - /oauth2/psw/token
  112. - /sys/log/**
  113. - /wx/user/**
  114. - /bailian/plugins/**
  115. enable: true
  116. sa-token:
  117. is-read-header: true
  118. # token名称 (同时也是cookie名称)
  119. token-name: Authorization
  120. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  121. is-concurrent: true
  122. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  123. is-share: false
  124. # 是否打开续签
  125. auto-renew: true
  126. # 是否输出操作日志
  127. is-log: false
  128. # 同一账号登录数量不做限制
  129. max-login-count: -1
  130. oauth2:
  131. is-password: true
  132. # 30天
  133. access-token-timeout: 2592000
  134. # 1天
  135. refresh-token-timeout: -1
  136. timeout: 2592000
  137. logging:
  138. config: classpath:log4j2.xml