Browse Source

docs: Fix example in Custom DSLs for http.csrf()

It should use lambda dsl to compile

Signed-off-by: Guillaume Husta <guillaume.husta@gmail.com>
Guillaume Husta 1 week ago
parent
commit
1ce73dd45a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/modules/ROOT/pages/servlet/configuration/java.adoc

+ 1 - 1
docs/modules/ROOT/pages/servlet/configuration/java.adoc

@@ -496,7 +496,7 @@ public class MyCustomDsl extends AbstractHttpConfigurer<MyCustomDsl, HttpSecurit
 	public void init(HttpSecurity http) {
 		// any method that adds another configurer
 		// must be done in the init method
-		http.csrf().disable();
+		http.csrf(csrf -> csrf.disable());
 	}
 
 	@Override