Commit 35379f62 authored by Phillip Webb's avatar Phillip Webb

Polish

parent e8085016
...@@ -48,8 +48,8 @@ public class ClassPathFileSystemWatcher implements InitializingBean, DisposableB ...@@ -48,8 +48,8 @@ public class ClassPathFileSystemWatcher implements InitializingBean, DisposableB
/** /**
* Create a new {@link ClassPathFileSystemWatcher} instance. * Create a new {@link ClassPathFileSystemWatcher} instance.
* @param fileSystemWatcherFactory a factory to create * @param fileSystemWatcherFactory a factory to create the underlying
* the underlying {@link FileSystemWatcher} used to monitor the local file system * {@link FileSystemWatcher} used to monitor the local file system
* @param restartStrategy the classpath restart strategy * @param restartStrategy the classpath restart strategy
* @param urls the URLs to watch * @param urls the URLs to watch
*/ */
......
...@@ -529,29 +529,30 @@ context starts. So in this YAML we set a value for `security.user.password` that ...@@ -529,29 +529,30 @@ context starts. So in this YAML we set a value for `security.user.password` that
[source,yaml,indent=0] [source,yaml,indent=0]
---- ----
server: server:
port: 80000 port: 80000
--- ---
spring: spring:
profiles: default profiles: default
security: security:
user: user:
password: weak password: weak
---- ----
whereas in this example, the password is always set because it isn't attached to any profile, whereas in this example, the password is always set because it isn't attached to any
and it would have to be explicitly reset in all other profiles as necessary: profile, and it would have to be explicitly reset in all other profiles as necessary:
[source,yaml,indent=0] [source,yaml,indent=0]
---- ----
server: server:
port: 80000 port: 80000
security: security:
user: user:
password: weak password: weak
---- ----
[[boot-features-external-config-yaml-shortcomings]] [[boot-features-external-config-yaml-shortcomings]]
==== YAML shortcomings ==== YAML shortcomings
YAML files can't be loaded via the `@PropertySource` annotation. So in the YAML files can't be loaded via the `@PropertySource` annotation. So in the
......
...@@ -31,8 +31,9 @@ import org.springframework.test.context.ContextConfiguration; ...@@ -31,8 +31,9 @@ import org.springframework.test.context.ContextConfiguration;
/** /**
* Class-level annotation that is used to determine how to load and configure an * Class-level annotation that is used to determine how to load and configure an
* {@code ApplicationContext} for integration tests. * {@code ApplicationContext} for integration tests.
* <p>Similar to the standard {@link ContextConfiguration @ContextConfiguration} * <p>
* but uses Spring Boot's {@link SpringApplicationContextLoader}. * Similar to the standard {@link ContextConfiguration @ContextConfiguration} but uses
* Spring Boot's {@link SpringApplicationContextLoader}.
* *
* @author Dave Syer * @author Dave Syer
* @author Sam Brannen * @author Sam Brannen
...@@ -47,42 +48,42 @@ import org.springframework.test.context.ContextConfiguration; ...@@ -47,42 +48,42 @@ import org.springframework.test.context.ContextConfiguration;
public @interface SpringApplicationConfiguration { public @interface SpringApplicationConfiguration {
/** /**
* @see ContextConfiguration#locations * @see ContextConfiguration#locations()
* @return the context configuration locations * @return the context configuration locations
*/ */
@AliasFor(annotation = ContextConfiguration.class, attribute = "locations") @AliasFor(annotation = ContextConfiguration.class, attribute = "locations")
String[] locations() default {}; String[] locations() default {};
/** /**
* @see ContextConfiguration#classes * @see ContextConfiguration#classes()
* @return the context configuration classes * @return the context configuration classes
*/ */
@AliasFor(annotation = ContextConfiguration.class, attribute = "classes") @AliasFor(annotation = ContextConfiguration.class, attribute = "classes")
Class<?>[] classes() default {}; Class<?>[] classes() default {};
/** /**
* @see ContextConfiguration#initializers * @see ContextConfiguration#initializers()
* @return the context configuration initializers * @return the context configuration initializers
*/ */
@AliasFor(annotation = ContextConfiguration.class, attribute = "initializers") @AliasFor(annotation = ContextConfiguration.class, attribute = "initializers")
Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>[] initializers() default {}; Class<? extends ApplicationContextInitializer<? extends ConfigurableApplicationContext>>[] initializers() default {};
/** /**
* @see ContextConfiguration#inheritLocations * @see ContextConfiguration#inheritLocations()
* @return {@code true} if context locations should be inherited * @return {@code true} if context locations should be inherited
*/ */
@AliasFor(annotation = ContextConfiguration.class, attribute = "inheritLocations") @AliasFor(annotation = ContextConfiguration.class, attribute = "inheritLocations")
boolean inheritLocations() default true; boolean inheritLocations() default true;
/** /**
* @see ContextConfiguration#inheritInitializers * @see ContextConfiguration#inheritInitializers()
* @return {@code true} if context initializers should be inherited * @return {@code true} if context initializers should be inherited
*/ */
@AliasFor(annotation = ContextConfiguration.class, attribute = "inheritInitializers") @AliasFor(annotation = ContextConfiguration.class, attribute = "inheritInitializers")
boolean inheritInitializers() default true; boolean inheritInitializers() default true;
/** /**
* @see ContextConfiguration#name * @see ContextConfiguration#name()
* @return the name of the context hierarchy level * @return the name of the context hierarchy level
*/ */
@AliasFor(annotation = ContextConfiguration.class, attribute = "name") @AliasFor(annotation = ContextConfiguration.class, attribute = "name")
......
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
......
/* /*
* 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"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment