From b1b2dfec679e8efdd72aa6e9e061d4a46eb94c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=B1=E6=91=B8=E9=B1=BC=E7=9A=84=E9=98=BF=E6=81=92?= Date: Sat, 18 Jun 2022 14:55:59 +0800 Subject: [PATCH] =?UTF-8?q?docs:=E7=BF=BB=E8=AF=91=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../servlet-authentication-passwords-form.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/spring-security/servlet-authentication-passwords-form.md b/docs/spring-security/servlet-authentication-passwords-form.md index 7916284..b4fe158 100644 --- a/docs/spring-security/servlet-authentication-passwords-form.md +++ b/docs/spring-security/servlet-authentication-passwords-form.md @@ -52,11 +52,11 @@ Spring 安全性为正在通过 HTML 表单提供的用户名和密码提供支 * 调用`AuthenticationSuccessHandler`。通常这是一个`SimpleUrlAuthenticationSuccessHandler`,当我们重定向到登录页面时,它将重定向到由[`ExceptionTranslationFilter`](../../architecture.html# Servlet-ExceptionTranslationFilter)保存的请求。 -Spring 默认情况下启用安全表单登录。然而,只要提供了任何基于 Servlet 的配置,就必须显式地提供基于表单的登录。可以在下面找到最小的、显式的 爪哇 配置: +Spring 默认情况下启用安全表单登录。然而,只要提供了任何基于 Servlet 的配置,就必须显式地提供基于表单的登录。可以在下面找到最小的、显式的 Java 配置: 例 1。表单登录 -爪哇 +Java ``` protected void configure(HttpSecurity http) { @@ -92,7 +92,7 @@ fun configure(http: HttpSecurity) { 例 2。自定义登录表单配置 -爪哇 +Java ``` protected void configure(HttpSecurity http) throws Exception { -- GitLab