#553 - Upgrade Mongo examples to Spring Boot 2.3.
This commit is contained in:
@@ -23,10 +23,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.data.mongodb.core.MongoOperations;
|
||||
|
||||
import com.mongodb.MongoClient;
|
||||
|
||||
/**
|
||||
* Test configuration to connect to a MongoDB named "test" and using a {@link MongoClient} with profiling enabled.
|
||||
* Test configuration to connect to a MongoDB named "test" and using a {@code MongoClient} with profiling enabled.
|
||||
*
|
||||
* @author Christoph Strobl
|
||||
*/
|
||||
|
||||
@@ -17,10 +17,9 @@ package example.springdata.mongodb.customer;
|
||||
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
import com.mongodb.MongoClient;
|
||||
|
||||
/**
|
||||
* Test configuration to connect to a MongoDB named "test" and using a {@link MongoClient}. Also enables Spring Data
|
||||
* Test configuration to connect to a MongoDB named "test" and using a {@code MongoClient}. Also enables Spring Data
|
||||
* repositories for MongoDB.
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
|
||||
@@ -21,10 +21,9 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.data.mongodb.core.mapping.event.BeforeConvertCallback;
|
||||
|
||||
import com.mongodb.MongoClient;
|
||||
|
||||
/**
|
||||
* Test configuration to connect to a MongoDB named "test" using a {@link MongoClient}. <br />
|
||||
* Test configuration to connect to a MongoDB named "test" using a {@code MongoClient}. <br />
|
||||
* Also enables Spring Data repositories for MongoDB.
|
||||
*
|
||||
* @author Mark Paluch
|
||||
|
||||
Reference in New Issue
Block a user