This commit is contained in:
Phillip Webb 2015-02-23 13:12:28 -08:00
parent df81b3145f
commit 8a8b5d3aa7
6 changed files with 15 additions and 9 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2013 the original author or authors.
* Copyright 2012-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2013 the original author or authors.
* Copyright 2012-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@ -29,17 +29,19 @@ import org.springframework.security.config.annotation.authentication.configurati
import org.springframework.security.config.annotation.authentication.configurers.GlobalAuthenticationConfigurerAdapter;
/**
* This works with the {@link AuthenticationConfiguration} to ensure that users are able
* to use:
* {@link GlobalAuthenticationConfigurerAdapter} to trigger early initialization of
* {@code @EnableAutoConfiguration} beans. This configuration is imported from
* {@link AuthenticationConfiguration} to ensure that users are able to configure the
* {@link AuthenticationManagerBuilder} from their {@code @EnableAutoConfiguration} or
* {@code @SpringBootApplication} configuration class:
*
* <pre>
* <pre class="code">
* &#064;Autowired
* public void configureGlobal(AuthenticationManagerBuilder auth) {
* ...
* }
* </pre>
*
* within their classes annotated with {@link EnableAutoConfiguration}.
*
* @author Rob Winch
* @since 1.1.11
*/
@ -73,5 +75,7 @@ public class BootGlobalAuthenticationConfiguration {
logger.debug("Eagerly initializing " + beansWithAnnotation);
}
}
}
}

View File

@ -36,4 +36,5 @@ public class HelloWebSecurityApplication {
public static void main(String[] args) {
SpringApplication.run(HelloWebSecurityApplication.class, args);
}
}
}

View File

@ -74,4 +74,5 @@ public class HelloWebSecurityApplicationTests {
assertThat(this.response.getStatus(), equalTo(HttpServletResponse.SC_OK));
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2014 the original author or authors.
* Copyright 2012-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.