use of com.free.framework.code.tools.param.GenerateCodeParam in project free-framework by a601942905git.
the class CodeToolController method generateCodeTool.
@GetMapping(CodeToolControllerMappingURL.CODE_TOOL)
@ResponseBody
public int generateCodeTool() throws Exception {
int count = 0;
GenerateCodeParam generateCodeParam = buildGenerateCodeParam();
DataBase2File dataBase2File = new DataBase2File(generateCodeParam);
try {
dataBase2File.generateFiles();
count = 1;
} catch (IOException e) {
log.error("【CodeToolController中generateCodeTool,IO异常】{}", e);
} catch (ClassNotFoundException e) {
log.error("【CodeToolController中generateCodeTool,ClassNotFoundException异常】{}", e);
} catch (SQLException e) {
log.error("【CodeToolController中generateCodeTool,SQLException异常】{}", e);
}
return count;
}
use of com.free.framework.code.tools.param.GenerateCodeParam in project free-framework by a601942905git.
the class DataBase2File method main.
public static void main(String[] args) throws IOException, ClassNotFoundException, SQLException {
DataBase2File reverser = new DataBase2File(new GenerateCodeParam());
reverser.generateFiles();
}
Aggregations