Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SKuznet committed Nov 29, 2015
1 parent b105f70 commit 8bc6d28
Showing 1 changed file with 46 additions and 4 deletions.
50 changes: 46 additions & 4 deletions STS/eshop/src/com/eshop/controller/AppController.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,54 @@ public ModelAndView hello() {
return modelandview;
}

@RequestMapping("webshop/sql")
public ModelAndView sqlHello() {
@RequestMapping("webshop/BackupDB")
public ModelAndView backupDB() {
ModelAndView modelandview = new ModelAndView("E-Shop");
Sql sql = new Sql();
sql.sqlInsert();
modelandview.addObject("msg", Sql.sqlCheck);
return modelandview;
}

@RequestMapping("webshop/CreateDataTable")
public ModelAndView createDataTable() {
ModelAndView modelandview = new ModelAndView("E-Shop");
modelandview.addObject("msg", Sql.sqlCheck);
return modelandview;
}

@RequestMapping("webshop/DeleteDataTable")
public ModelAndView deleteDataTable() {
ModelAndView modelandview = new ModelAndView("E-Shop");
modelandview.addObject("msg", Sql.sqlCheck);
return modelandview;
}

@RequestMapping("webshop/DescribeTableInfoColumns")
public ModelAndView describeTableInfoColumns() {
ModelAndView modelandview = new ModelAndView("E-Shop");
modelandview.addObject("msg", Sql.sqlCheck);
return modelandview;
}

@RequestMapping("webshop/insertDataTable")
public ModelAndView insertDataTable() {
ModelAndView modelandview = new ModelAndView("E-Shop");
modelandview.addObject("msg", Sql.sqlCheck);
return modelandview;
}

@RequestMapping("webshop/SelectDataTable")
public ModelAndView selectDataTable() {
ModelAndView modelandview = new ModelAndView("E-Shop");
modelandview.addObject("msg", Sql.sqlCheck);
return modelandview;
}

@RequestMapping("webshop/ShrinkDataDB")
public ModelAndView shrinkDataDB() {
ModelAndView modelandview = new ModelAndView("E-Shop");
modelandview.addObject("msg", Sql.sqlCheck);
return modelandview;
}


}

0 comments on commit 8bc6d28

Please sign in to comment.