Example usage for org.springframework.web.bind.annotation RequestMethod GET

List of usage examples for org.springframework.web.bind.annotation RequestMethod GET

Introduction

In this page you can find the example usage for org.springframework.web.bind.annotation RequestMethod GET.

Prototype

RequestMethod GET

To view the source code for org.springframework.web.bind.annotation RequestMethod GET.

Click Source Link

Usage

From source file:com.project.framework.controller.FooterController.java

@RequestMapping(value = "/footer", method = { RequestMethod.GET, RequestMethod.POST })
public String setFooter(ModelMap model) {
    model.addAttribute("continentes", continenteService.getContinentesConIdioma());
    return "framework/footer";
}

From source file:net.acesinc.util.test.service1.web.HomepageController.java

@RequestMapping(value = { "/", "/index" }, method = RequestMethod.GET)
public String getHomepage(ModelMap model, Principal p) {
    model.addAttribute("pageName", "Home");
    return "index";
}

From source file:com.MyHistory.Controller.AdministratorController.java

@RequestMapping(value = "/FormularioAdministrador", method = RequestMethod.GET)
public ModelAndView desplegarFormularioAdministrador() {
    System.out.println("admin Controller method:GET");
    ModelAndView mv = new ModelAndView();
    mv.setViewName("FormularioAdministrador");
    return mv;//  ww  w. j a  va  2  s.c  o  m
}

From source file:com.stitchgalaxy.sg_manager_web.LoginController.java

@RequestMapping(value = UrlConstants.URL_LOGIN_FAILED, method = RequestMethod.GET)
public String loginerror(ModelMap model) {

    model.addAttribute("error", "true");
    UrlConstants.AddUrlConstants(model);

    return "login";

}

From source file:ca.n4dev.dev.worktime.controller.IndexController.java

@RequestMapping(value = "/", method = RequestMethod.GET)
public String index() {
    return "index";
}

From source file:com.amkaawaken.controllers.ProjectsController.java

@RequestMapping(value = "/projects_details.htm", method = RequestMethod.GET)
public ModelAndView projects_details() {
    return new ModelAndView("com.amkaawaken.projects_details");
}

From source file:com.ujjwal.maven.api.StudentAPI.java

@RequestMapping(method = RequestMethod.GET)
public List<Student> students() {
    return sService.getAll();
}

From source file:bg.neutrino.controllers.DevicesView.java

@RequestMapping(path = "/devices", method = RequestMethod.GET)
String devices(Model model, HttpSession httpSession) throws IOException {
    User user = getSessionUser(httpSession);
    model.addAttribute("user", user);
    model.addAttribute("page", "devices");
    model.addAttribute("devices", DeviceList.getAsArrayList());
    DeviceProperties dp = new DeviceProperties();
    model.addAttribute("googleMapsApiKey", dp.get().getProperty("google.maps.api.key"));
    return "devices/index";
}

From source file:com.infinity.controller.PdfController.java

@RequestMapping(value = "/generate/pdf", method = RequestMethod.GET)
ModelAndView generatePdf(HttpServletRequest request, HttpServletResponse response) throws Exception {

    //        Employee employee = new Employee();
    //        employee.setFirstName("Yashwant");
    //        employee.setLastName("Chavan");

    Map map = new HashMap<>();
    ArrayList<String> word = new ArrayList<>();
    word.add("toto");
    word.add("titi");
    map.put("wordList", word);

    return new ModelAndView("pdfView", map);

}

From source file:hola.ControladorInicial.java

@RequestMapping(value = "/hola", method = RequestMethod.GET, headers = { "Accept=text/html" })
public @ResponseBody String hola() {

    return "Bienvenido a mi primer servicios con spring";
}