diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnProperty.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnProperty.java index 2d71b4d690..7827dac2d6 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnProperty.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/ConditionalOnProperty.java @@ -105,7 +105,8 @@ public @interface ConditionalOnProperty { /** * A prefix that should be applied to each property. The prefix automatically ends - * with a dot if not specified. + * with a dot if not specified. A valid prefix is defined by one or more words + * separated with dots (e.g. {@code "acme.system.feature"}). * @return the prefix */ String prefix() default ""; diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java index 4faec76510..9f9888c8a4 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2017 the original author or authors. + * Copyright 2012-2018 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. @@ -43,7 +43,8 @@ public @interface ConfigurationProperties { /** * The name prefix of the properties that are valid to bind to this object. Synonym - * for {@link #prefix()}. + * for {@link #prefix()}. A valid prefix is defined by one or more words separated + * with dots (e.g. {@code "acme.system.feature"}). * @return the name prefix of the properties to bind */ @AliasFor("prefix") @@ -51,7 +52,8 @@ public @interface ConfigurationProperties { /** * The name prefix of the properties that are valid to bind to this object. Synonym - * for {@link #value()}. + * for {@link #value()}. A valid prefix is defined by one or more words separated with + * dots (e.g. {@code "acme.system.feature"}). * @return the name prefix of the properties to bind */ @AliasFor("value")