Kaynağa Gözat

修改查询数据源路径

郭志波 6 yıl önce
ebeveyn
işleme
4a59b6154d

+ 1 - 1
src/main/java/com/leanwo/management/DataSourceSettingFrame.java

@@ -429,7 +429,7 @@ public class DataSourceSettingFrame extends JFrame {
 	private void deleteYml(DataSourceConfig dataSourceConfig) throws Exception {
 		// 根据dataSourceConfigs修改yml
 		Yaml yaml = new Yaml();
-	    File file = new File("src/main/resources/Application.yml");
+	    File file = new File("resources/Application.yml");
 	    String path = file.getAbsolutePath();
 	    if(file.exists()) {
 	    	try {