All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.co.caeldev.spring.moprhia.MongoSettings Maven / Gradle / Ivy

There is a newer version: 0.1.5
Show newest version
package uk.co.caeldev.spring.moprhia;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix="mongo")
public class MongoSettings {

    private String host;

    private int port;

    private String database;

    private String username;

    private String password;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    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;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy