uk.co.caeldev.spring.moprhia.MongoSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-morphia Show documentation
Show all versions of spring-morphia Show documentation
A Commons Library to provide moprhia configuration
The newest version!
package uk.co.caeldev.spring.moprhia;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.List;
@ConfigurationProperties(prefix="mongo")
public class MongoSettings {
private List servers;
private String database;
private String username;
private String password;
public List getServers() {
return servers;
}
public void setServers(List servers) {
this.servers = servers;
}
public String getDatabase() {
return database;
}
public void setDatabase(String database) {
this.database = database;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}