@ConfigurationProperties(prefix="herodotus.security") public class SecurityProperties extends Object implements Serializable
Description : 服务安全配置
loginPage(): 自定义登录页面 loginProcessingUrl():将用户名和密码提交到的URL defaultSuccessUrl(): 成功登录后跳转的URL。 如果是直接从登录页面登录,会跳转到该URL;如果是从其他页面跳转到登录页面,登录后会跳转到原来页面。可设置true来任何时候到跳转该URL。 successForwardUrl():成功登录后重定向的URL failureUrl():登录失败后跳转的URL,指定的路径要能匿名访问 failureForwardUrl():登录失败后重定向的URL
| 限定符和类型 | 类和说明 |
|---|---|
static class |
SecurityProperties.Matcher
用于手动的指定 Request Matcher 安全规则。
|
| 构造器和说明 |
|---|
SecurityProperties() |
| 限定符和类型 | 方法和说明 |
|---|---|
SecurityProperties.Matcher |
getMatcher() |
void |
setMatcher(SecurityProperties.Matcher matcher) |
public SecurityProperties.Matcher getMatcher()
public void setMatcher(SecurityProperties.Matcher matcher)
Copyright © 2022. All rights reserved.