All Downloads are FREE. Search and download functionalities are using the official Maven repository.

config.properties.application.yml Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta.6
Show newest version
dreamly.security:
  # 权限规则配置:表示用{http-method}方法请求的{path}路径必须具备什么{expression}
  spec-list:
    - http-method: ANY
      path: /login
      expression: "anon()"
    - http-method: ANY
      path: /user
      expression: "hasRole('user')"
    - http-method: ANY
      path: /user-no-access
      expression: "hasAllRoles('user','admin','xx')"
    - http-method: ANY
      path: /**
      expression: "hasLogin()"
    - http-method: ANY
      path: /**
      expression: "hasPermission('permission')"
  jwt:
    # jwt sign算法
    algorithm: hs512
    # jwt secret
    secret: http-security-secret-http-security-secret
    # jwt 有效时间
    expiration-in-second: 1209600




© 2015 - 2024 Weber Informatics LLC | Privacy Policy