diff --git a/docs/spring-security/servlet-authentication-passwords-form.md b/docs/spring-security/servlet-authentication-passwords-form.md index 7916284b4efa24e17858d2bebb751d8d1ad3933b..b4fe15871b898ea28ae5e0f1401ecd5ad468482d 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 {