From 97cf86801b0af2213716d57e9fda4a1c1659088b Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 27 May 2015 11:10:14 +0200 Subject: [PATCH] Fix example structure --- .../main/asciidoc/spring-boot-features.adoc | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index bf35e93a7b..1cae844d31 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -1659,21 +1659,22 @@ decorated and enhanced with the necessary pieces to get the `/login` path working. For example, here we simply allow unauthenticated access to the home page at "/" and keep the default for everything else: -[source,java] ---- -@Configuration -public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter { +[source,java,indent=0] +---- + @Configuration + public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter { - @Override - public void init(WebSecurity web) { - web.ignore("/"); - } + @Override + public void init(WebSecurity web) { + web.ignore("/"); + } - @Override - protected void configure(HttpSecurity http) throws Exception { - http.antMatcher("/**").authorizeRequests().anyRequest().authenticated(); - } + @Override + protected void configure(HttpSecurity http) throws Exception { + http.antMatcher("/**").authorizeRequests().anyRequest().authenticated(); + } -} + } ---- === Actuator Security