浏览代码

Fixes Documentation Problem

Fixes documentation problem of Anonymous Authentication
in ServerHttpSecurity

Fixes: gh-6327
Ankur Pathak 6 年之前
父节点
当前提交
f289ef8689

+ 5 - 4
config/src/main/java/org/springframework/security/config/web/server/ServerHttpSecurity.java

@@ -432,9 +432,7 @@ public class ServerHttpSecurity {
 	}
 
 	/**
-	 * @since 5.2.0
-	 * @author Ankur Pathak
-	 * Enables and Configures annonymous authentication. Anonymous Authentication is disabled by default.
+	 * Enables and Configures anonymous authentication. Anonymous Authentication is disabled by default.
 	 *
 	 * <pre class="code">
 	 *  &#064;Bean
@@ -446,6 +444,9 @@ public class ServerHttpSecurity {
 	 *      return http.build();
 	 *  }
 	 * </pre>
+	 * @return the {@link AnonymousSpec} to customize
+	 * @since 5.2.0
+	 * @author Ankur Pathak
 	 */
 	public AnonymousSpec anonymous(){
 		if (this.anonymous == null) {
@@ -2661,7 +2662,7 @@ public class ServerHttpSecurity {
 	}
 
 	/**
-	 * Configures annonymous authentication
+	 * Configures anonymous authentication
 	 * @author Ankur Pathak
 	 * @since 5.2.0
 	 */