nidapeng
2024-05-06 8ea9463705d26f07a279bab974769a5ceed43415
server/system_gateway/src/main/resources/application.yml
@@ -1,6 +1,6 @@
# 项目信息配置
project:
  name: 访客系统
  name: 安泰物流访客系统
  version: 1.0.0
  env: development
#  env: production
@@ -25,6 +25,7 @@
      enabled: true
  main:
    allow-circular-references: true
    web-application-type: reactive
# MyBatis配置
mybatis-plus:
  mapper-locations: classpath*:/mappers/**/*.xml
@@ -62,7 +63,19 @@
  basic:
    enable: true
    username: admin
    password: 111111
    password: 123456
  main:
    allow-circular-references: true
auth:
  jwt:
    enabled: true   #是否开启JWT登录认证功能
    secret: fjkfaf;afa  # JWT私钥,用于校验JWT令牌的合法性
    expiration: 36000000 #JWT令牌的有效期,用于校验JWT令牌的合法性
    header: JWTHeaderName #HTTP请求的Header名称,该Header作为参数传递JWT令牌
    userParamName: username  #用户登录认证用户名参数名称
    pwdParamName: password  #用户登录认证密码参数名称
    useDefaultController: true # 是否使用默认的JwtAuthController
# WEB服务器配置
server:
@@ -77,3 +90,16 @@
      timeout: PT3H  #表示12小时
gateway:
  loginFilterFolders:
    - /login
    - /biz/
  skipLoginFilterUrls:
    - /meetingAdmin/**
    - /visitsAdmin/**
    - /login
    - /captcha
    - /doc.html
    - /v2/api-docs/**
    - /**.js
    - /**.html