Polish mongo changes

Restore formatting and fixup doc comments.
pull/733/merge
Phillip Webb 11 years ago
parent 2adf30950e
commit a7f5cbf7d0

@ -16,12 +16,13 @@
package org.springframework.boot.autoconfigure.mongo;
import java.net.UnknownHostException;
import org.springframework.boot.context.properties.ConfigurationProperties;
import com.mongodb.DBPort;
import com.mongodb.MongoClient;
import com.mongodb.MongoClientURI;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.net.UnknownHostException;
/**
* Configuration properties for Mongo.
@ -43,7 +44,6 @@ public class MongoProperties {
private String gridFsDatabase;
public String getHost() {
return this.host;
}
@ -77,7 +77,7 @@ public class MongoProperties {
}
public String getGridFsDatabase() {
return gridFsDatabase;
return this.gridFsDatabase;
}
public void setGridFsDatabase(String gridFsDatabase) {

@ -33,11 +33,10 @@ import org.springframework.util.StringUtils;
import com.mongodb.Mongo;
/**
* {@link EnableAutoConfiguration Auto-configuration} for Spring Data's
* {@link MongoTemplate}.
* {@link EnableAutoConfiguration Auto-configuration} for Spring Data's mongo support.
* <p>
* Registers a {@link org.springframework.data.mongodb.core.MongoTemplate} bean if no
* other bean of the same type is configured.
* Registers a {@link MongoTemplate} and {@link GridFsTemplate} beans if no other beans of
* the same type are configured.
* <P>
* Honors the {@literal spring.data.mongodb.database} property if set, otherwise connects
* to the {@literal test} database.

@ -1,5 +1,5 @@
/*
* Copyright 2012-2013 the original author or authors.
* Copyright 2012-2014 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.
@ -25,12 +25,11 @@ import org.springframework.data.mongodb.gridfs.GridFsTemplate;
import static org.junit.Assert.assertEquals;
/**
* Tests for
* {@link org.springframework.boot.autoconfigure.mongo.MongoTemplateAutoConfiguration}.
* Tests for {@link MongoTemplateAutoConfiguration}.
*
* @author Josh Long
*/
public class GridFsTemplateAutoConfigurationTests {
public class MongoTemplateAutoConfigurationTests {
private AnnotationConfigApplicationContext context;
Loading…
Cancel
Save