Skip to content

Commit 1ce73dd

Browse files
ghustarwinch
authored andcommitted
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>
1 parent bb7fcb2 commit 1ce73dd

File tree

1 file changed

+1
-1
lines changed
  • docs/modules/ROOT/pages/servlet/configuration

1 file changed

+1
-1
lines changed

docs/modules/ROOT/pages/servlet/configuration/java.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ public class MyCustomDsl extends AbstractHttpConfigurer<MyCustomDsl, HttpSecurit
496496
public void init(HttpSecurity http) {
497497
// any method that adds another configurer
498498
// must be done in the init method
499-
http.csrf().disable();
499+
http.csrf(csrf -> csrf.disable());
500500
}
501501
502502
@Override

0 commit comments

Comments
 (0)