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

com.mntviews.base.model.DbProperties Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy