com.mntviews.base.model.DbProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mnt-base Show documentation
Show all versions of mnt-base Show documentation
Basis for mnt-bridge services
The newest version!
package com.mntviews.base.model;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import java.util.HashMap;
import java.util.Map;
@ConfigurationProperties("config")
@Component
public class DbProperties {
private Map db = new HashMap<>();
public Map getDb() {
return db;
}
public void setDb(Map db) {
this.db = db;
}
public static class Db {
private String userName;
private String password;
private String url;
private String schemaName;
private Map params = new HashMap<>();
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;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getSchemaName() {
return schemaName;
}
public void setSchemaName(String schemaName) {
this.schemaName = schemaName;
}
public Map getParams() {
return params;
}
public void setParams(Map params) {
this.params = params;
}
}
}