master
wangbing 4 years ago
parent 214b92e5e2
commit a1790d2d60

@ -25,7 +25,8 @@ public class JsonManager {
public boolean saveAs(File file, Project project) {
String data = MapperUtil.toJson(project);
return FileUtil.writeStringToFile(data, file, false, false);
File file_ = new File(file, project.getName() + ".json");
return FileUtil.writeStringToFile(data, file_, false, false);
}
private boolean getBoolean(String str) {

@ -19,6 +19,7 @@ import xyz.wbsite.dbtool.javafx.po.Project;
import xyz.wbsite.dbtool.javafx.po.Table;
import xyz.wbsite.dbtool.javafx.po.VueOption;
import xyz.wbsite.dbtool.javafx.tool.Dialog;
import xyz.wbsite.dbtool.javafx.tool.Tool;
import java.io.File;
import java.io.FilenameFilter;
@ -309,12 +310,12 @@ public class ProjectManager {
*/
public void save(File file) {
xmlService.saveAs(file, project);
// jsonManager.saveAs(new File(file.getAbsolutePath().replaceAll("xml$", "json")), project);
// jsonManager.saveAs(file, project);
}
public void save() {
xmlService.saveAs(path, project);
// jsonManager.saveAs(new File(path.getAbsolutePath().replaceAll("xml$", "json")), project);
// jsonManager.saveAs(path, project);
}
public void delete() {

@ -109,7 +109,6 @@ public class SpringMVCCallable implements Callable {
}
//生成java文件
{
//生成Controller
System.out.println("生成模块:controller");

@ -1,5 +1,6 @@
package xyz.wbsite.dbtool.javafx.po;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javafx.beans.property.SimpleStringProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
@ -13,6 +14,7 @@ import java.util.ArrayList;
import java.util.List;
public class Table {
@JsonIgnore
private Module dBhandle;
public Table() {

@ -0,0 +1,7 @@
package xyz.wbsite.dbtool.javafx.property;
/**
* Created by Administrator on 2020/7/31 0031.
*/
public class DataBase {
}
Loading…
Cancel
Save

Powered by TurnKey Linux.