提交 bcf627ff 编写于 作者: 公众号-WU双's avatar 公众号-WU双

#31 Configuration optimization-delete previous config file and move some class

上级 436dd11f
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.
#
dataSources:
ds_0:
url: jdbc:mysql://127.0.0.1:3306/test?serverTimezone=UTC&useSSL=false
username: root
password: 123456
\ No newline at end of file
......@@ -15,12 +15,12 @@
* limitations under the License.
*/
package info.avalon566.shardingscaling.config;
package info.avalon566.shardingscaling.core.config;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.util.HashMap;
import java.util.Map;
import java.util.List;
/**
* Rule configuration.
......@@ -29,10 +29,16 @@ import java.util.Map;
@Data
public class RuleConfiguration {
private Map<String, YamlDataSourceParameter> dataSources = new HashMap<>();
private List<YamlDataSourceParameter> dataSources;
private YamlDataSourceParameter destinationDataSources;
@AllArgsConstructor
@Data
public static final class YamlDataSourceParameter {
private String name;
private String url;
private String username;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册