From 8a59e88a9db0f80713553823bbe554c79f920557 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 8 Feb 2017 14:29:33 +0100 Subject: [PATCH] Fix MongoDB CustomConversions bean name This commit qualifies the `CustomConversions` bean name that the Mongo auto-configuration might create. `CustomConversions` is a common pattern in Spring Data and other stores are using the same name. See https://jira.spring.io/browse/DATASOLR-362 Closes gh-8225 --- .../autoconfigure/data/mongo/MongoDataAutoConfiguration.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfiguration.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfiguration.java index 46fd223d59..20b53c8b11 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfiguration.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/mongo/MongoDataAutoConfiguration.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2016 the original author or authors. + * Copyright 2012-2017 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. @@ -68,6 +68,7 @@ import org.springframework.util.StringUtils; * @author Josh Long * @author Phillip Webb * @author EddĂș MelĂ©ndez + * @author Stephane Nicoll * @since 1.1.0 */ @Configuration @@ -139,7 +140,7 @@ public class MongoDataAutoConfiguration { @Bean @ConditionalOnMissingBean - public CustomConversions customConversions() { + public CustomConversions mongoCustomConversions() { return new CustomConversions(Collections.emptyList()); }