package io.khasang.wlogs.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class AppController {
    @RequestMapping("/")
    public String welcome(Model model) {
        model.addAttribute("greeting", "Welcome to our best Shop!");
        model.addAttribute("tagline", "The one and only amazing shop system!");
        return "welcome";
    }

    @RequestMapping("/backup")
    public String backup(Model model) {
        model.addAttribute("backup", "Success");
        return "backup";
    }

    @RequestMapping("/admin")
    public String admin(Model model) {
        model.addAttribute("admin", "You are number 1!");
        return "admin";
    }

    @RequestMapping("/tableselect")
    public String tableselect(Model model) {
        model.addAttribute("dropdownlist", "Please, select the table");
        return "tableselect";
    }
}
@@ -31,16 +31,63 @@
 oller;%0A%0A
+import io.khasang.wlogs.model.CreateDataTable;%0A
 import o
@@ -820,32 +820,288 @@
 %22admin%22;%0A    %7D%0A%0A
+    @RequestMapping(%22/insertdata%22)%0A    public String insertData(Model model) %7B%0A        CreateDataTable createDataTable = new CreateDataTable();%0A        model.addAttribute(%22insertdata%22, createDataTable.sqlInsertCheck());%0A        return %22insertdata%22;%0A    %7D%0A%0A
     @RequestMapp

add insertdata