瀏覽代碼

Fix Custom DSL sample in docs

Eleftheria Stein 4 年之前
父節點
當前提交
90b48554e4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/manual/src/docs/asciidoc/_includes/servlet/java-configuration/index.adoc

+ 2 - 2
docs/manual/src/docs/asciidoc/_includes/servlet/java-configuration/index.adoc

@@ -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.