Rename Embedded Mongo configuration prefix to spring.mongodb.embedded

Previously, the prefix was spring.embedded-mongodb. This was
inconsistent with the prefixes for Artermis and HornetQ which are
spring.artemis.embedded and spring.hornetq.embedded respectively.

See gh-2002
This commit is contained in:
Andy Wilkinson 2015-07-16 16:56:27 +01:00
parent f9ab189262
commit 352ff4e899
3 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ import de.flapdoodle.embed.mongo.distribution.Feature;
* @author Andy Wilkinson
* @since 1.3.0
*/
@ConfigurationProperties(prefix = "spring.embedded-mongodb")
@ConfigurationProperties(prefix = "spring.mongodb.embedded")
public class EmbeddedMongoProperties {
/**

View File

@ -73,7 +73,7 @@ public class EmbeddedMongoAutoConfigurationTests {
this.context = new AnnotationConfigApplicationContext();
int mongoPort = findAvailableTcpPort();
addEnvironment(this.context, "spring.data.mongodb.port=" + mongoPort,
"spring.embedded-mongodb.features=TEXT_SEARCH, SYNC_DELAY");
"spring.mongodb.embedded.features=TEXT_SEARCH, SYNC_DELAY");
this.context.register(EmbeddedMongoAutoConfiguration.class);
this.context.refresh();
assertThat(this.context.getBean(EmbeddedMongoProperties.class).getFeatures(),
@ -100,7 +100,7 @@ public class EmbeddedMongoAutoConfigurationTests {
int mongoPort = findAvailableTcpPort();
addEnvironment(this.context, "spring.data.mongodb.port=" + mongoPort);
if (configuredVersion != null) {
addEnvironment(this.context, "spring.embedded-mongodb.version="
addEnvironment(this.context, "spring.mongodb.embedded.version="
+ configuredVersion);
}
this.context.register(MongoAutoConfiguration.class,

View File

@ -335,8 +335,8 @@ content into your application; rather pick only the properties that you need.
spring.data.mongodb.field-naming-strategy= # fully qualified name of the FieldNamingStrategy to use
# EMBEDDED MONGODB ({sc-spring-boot-autoconfigure}/mongo/embedded/EmbeddedMongoProerties.{sc-ext}[EmbeddedMongoProperties])
spring.embedded-mongodb.version=2.6.10 # version of Mongo to use
spring.embedded-mongodb.features=SYNC_DELAY # comma-separated list of features to enable
spring.mongodb.embedded.version=2.6.10 # version of Mongo to use
spring.mongodb.embedded.features=SYNC_DELAY # comma-separated list of features to enable
# JPA ({sc-spring-boot-autoconfigure}/orm/jpa/JpaBaseConfiguration.{sc-ext}[JpaBaseConfiguration], {sc-spring-boot-autoconfigure}/orm/jpa/HibernateJpaAutoConfiguration.{sc-ext}[HibernateJpaAutoConfiguration])
spring.jpa.properties.*= # properties to set on the JPA connection