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

com.lsq.springboot.datasource.starter.autoconfigure.MultiDataSourceProperties Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
/*
 * Copyright 2018 the organization loushi135
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.lsq.springboot.datasource.starter.autoconfigure;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

import java.util.LinkedHashMap;
import java.util.Map;

@ConfigurationProperties(prefix = "sppring.datasource.multi")
public class MultiDataSourceProperties extends PrintFriendliness {

    private static final long serialVersionUID = 1430006282261589841L;

    private Map group = new LinkedHashMap<>();

    /**
     * 是否使用p6spy输出,默认不输出
     */
    private Boolean p6spy = false;

    /**
     * 此组下全局默认配置
     */
    @NestedConfigurationProperty
    private DruidConfig druid = new DruidConfig();

    public Map getGroup() {
        return group;
    }

    public void setGroup(Map group) {
        this.group = group;
    }

    public Boolean getP6spy() {
        return p6spy;
    }

    public void setP6spy(Boolean p6spy) {
        this.p6spy = p6spy;
    }

    public DruidConfig getDruid() {
        return druid;
    }

    public void setDruid(DruidConfig druid) {
        this.druid = druid;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy