소스 검색

Fix HttpSecurity logout JavaDoc

Removed error provoking extra logout() from example code
Jeffrey Walraven 9 년 전
부모
커밋
bd0c8a7baa
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      config/src/main/java/org/springframework/security/config/annotation/web/builders/HttpSecurity.java

+ 2 - 2
config/src/main/java/org/springframework/security/config/annotation/web/builders/HttpSecurity.java

@@ -719,7 +719,7 @@ public final class HttpSecurity extends
 	 * 		http.authorizeRequests().antMatchers("/**").hasRole("USER").and().formLogin()
 	 * 				.and()
 	 * 				// sample logout customization
-	 * 				.logout().logout().deleteCookies("remove").invalidateHttpSession(false)
+	 * 				.logout().deleteCookies("remove").invalidateHttpSession(false)
 	 * 				.logoutUrl("/custom-logout").logoutSuccessUrl("/logout-success");
 	 * 	}
 	 *
@@ -1245,4 +1245,4 @@ public final class HttpSecurity extends
 		}
 		return apply(configurer);
 	}
-}
+}