jiangping
2025-05-22 c115722130eb11af68ab639835a266ca9e2b4c9c
server/meeting/meeting_admin/src/main/resources/application.yml
@@ -6,12 +6,8 @@
#  env: production
spring:
  #  application:
  #    name: doumeemes
  profiles:
    active: dev
  application:
    name: meetingAdmin
  # JSON返回配置
  jackson:
    # 默认时区
@@ -23,19 +19,22 @@
      max-file-size: 200MB
      max-request-size: 200MB
      enabled: true
  main:
    allow-circular-references: true
# MyBatis配置
mybatis-plus:
  mapper-locations: classpath*:/mappers/**/*.xml
  configuration:
    map-underscore-to-camel-case: true
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
    log-impl: com.doumee.config.mybatis.DmStdOutImpl
# 缓存内容设置
cache:
  session:
    # 会话过期时长(s)
    expire: 18000
    expire: 1800
  captcha:
    # 验证码过期时长(s)
    expire: 300
@@ -55,14 +54,8 @@
# dao层的日志设置为debug,方便查看sql
logging:
  level:
    doumeemes.dao: debug
    com.doumee.dao: debug
knife4j:
  enable: true
  basic:
    enable: true
    username: admin
    password: 111111
# WEB服务器配置
server:
@@ -75,4 +68,15 @@
    max-swallow-size: -1
  servlet:
    session:
      timeout: PT3H  #表示12小时
      timeout: PT3H  #表示12小时
auth:
  jwt:
    enabled: true   #是否开启JWT登录认证功能
    secret: fjkfaf;afa  # JWT私钥,用于校验JWT令牌的合法性
    expiration: 1800000 #JWT令牌的有效期,用于校验JWT令牌的合法性
    #    expiration: 300000 #JWT令牌的有效期,用于校验JWT令牌的合法性
    header: JWTHeaderName #HTTP请求的Header名称,该Header作为参数传递JWT令牌
    userParamName: username  #用户登录认证用户名参数名称
    pwdParamName: password  #用户登录认证密码参数名称
    useDefaultController: true # 是否使用默认的JwtAuthController