Fix Custom DSL sample in docs

This commit is contained in:
Eleftheria Stein 2020-12-09 10:48:15 +01:00
parent f614a8230c
commit 90b48554e4
1 changed files with 2 additions and 2 deletions

View File

@ -232,14 +232,14 @@ public class MyCustomDsl extends AbstractHttpConfigurer<MyCustomDsl, HttpSecurit
private boolean flag;
@Override
public void init(H http) throws Exception {
public void init(HttpSecurity http) throws Exception {
// any method that adds another configurer
// must be done in the init method
http.csrf().disable();
}
@Override
public void configure(H http) throws Exception {
public void configure(HttpSecurity http) throws Exception {
ApplicationContext context = http.getSharedObject(ApplicationContext.class);
// here we lookup from the ApplicationContext. You can also just create a new instance.