This commit is contained in:
sky 2020-04-29 15:26:46 +08:00
parent b2e1813cff
commit 208d44b5f5

View File

@ -19,9 +19,9 @@ import java.util.concurrent.ConcurrentHashMap;
*/
public class DBSource {
@TInject("datasource.yml")
@TInject(value = "datasource.yml", migrate = true)
private static TConfig settings;
private static ConcurrentHashMap<IHost, DBSourceData> dataSource = new ConcurrentHashMap<>();
private static final ConcurrentHashMap<IHost, DBSourceData> dataSource = new ConcurrentHashMap<>();
public static DataSource create(IHost host) {
return create(host, null);