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:uk.co.elitestarbase.website.web.PageTestController.java

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

From source file:com.ecommerce.controller.HelloController.java

@RequestMapping(method = RequestMethod.GET)
public String helloWorld(ModelMap modelMap) {
    modelMap.put("quang", "Shop Ban Hang");
    return "index";
}

From source file:com.mycompany.wolf.LoginController.java

@RequestMapping(value = "/login", method = RequestMethod.GET)
public void login(HttpSession session, LoginCommand command) {
    session.setAttribute("playerId", command.getPlayerId());
}

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

@RequestMapping(value = "/body", method = { RequestMethod.GET, RequestMethod.POST })
public String setBody(ModelMap model) {
    return "framework/body";
}

From source file:com.onclave.testbench.RESTful.SinglePageApplication.SPARoutingController.java

@RequestMapping(value = "/admin/views/spa/comments", method = RequestMethod.GET)
public String serveSPACommentsView() {
    return "/spa/comments";
}

From source file:com.sg.capstone.controller.PortalController.java

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

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

@RequestMapping(value = "/logout", method = RequestMethod.GET)
public String logOut(HttpSession session) {
    session.invalidate();/*  w w w  . j a  v  a  2 s .  co  m*/
    return "redirect:/framework.htm";
}

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

@RequestMapping(value = "/header", method = { RequestMethod.GET, RequestMethod.POST })
public String setHeader(ModelMap model) {
    return "framework/header";
}

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

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

From source file:com.cfs.controller.HelloController.java

@RequestMapping(value = "/admin**", method = RequestMethod.GET)
public ModelAndView adminPage() {

    ModelAndView model = new ModelAndView();
    model.addObject("title", "Spring Security Hello World");
    model.addObject("message", "This is protected page!");
    return model;

}