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:kz.controller.VideosController.java

@RequestMapping(value = "/videolesson.htm", method = RequestMethod.GET)
public ModelAndView videolesson(Model model, HttpServletResponse response) throws SQLException {
    ModelAndView mv = new ModelAndView("videolesson");
    return mv;//w w  w. ja  va2 s.  c o  m
}

From source file:nl.mok.mastersofcode.spectatorclient.controllers.IndexController.java

@RequestMapping(method = RequestMethod.GET)
public ModelAndView showIndex(final HttpServletRequest request) {
    ModelAndView mav = new ModelAndView();

    mav.addObject("page", new Object() {
        public String uri = "/spec/";
        public String redirect = request.getRequestURL().toString();
    });/*from  w  w w  .  j  ava2  s  . co m*/

    mav.addObject("competitions", DataController.getCompetitions());
    mav.addObject("currentCompetition", DataController.getCurrentCompetition());
    mav.addObject("currentRound", DataController.getCurrentRound());

    mav.setViewName("index.twig");

    return mav;
}

From source file:sh.springboot.controller.HomeController.java

@RequestMapping(value = "/buah", method = RequestMethod.GET)
Buah getBuah() {/*from   w  w  w  .ja  v a  2s. co m*/
    Buah p = new Buah();
    p.setNama("Jeruk");
    p.setRasa("Masam");

    return p;
}

From source file:com.mohit.program.controller.disease.DiseaseController.java

@RequestMapping(method = RequestMethod.GET)
public String doGet() {
    return "disease/add";
}

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

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

From source file:com.leapfrog.academyspring.controller.HomeController.java

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

From source file:com.mycompany.proyecto2.ll.af.ControladorUsuarios.java

@RequestMapping(value = "/usuario", method = RequestMethod.GET, headers = { "Accept=Application/json" })
public @ResponseBody String hola2() throws Exception {
    DAOUsuario d = new DAOUsuario();

    String hola = d.obtenerTodos();

    return hola;// ww w .  ja v a 2 s  .  c  o  m
}

From source file:com.tsg.sitemapwebappmvc.controller.FlooringCalcController.java

@RequestMapping(value = "/FlooringCalcController", method = RequestMethod.GET)
public String displayFlooringForm(HttpServletRequest request, Model model) {

    return "flooringcalc";

}

From source file:com.mohit.program.controller.medicine.MedicineController.java

@RequestMapping(method = RequestMethod.GET)
public String doGet() {
    return "medicine/add";
}

From source file:elas.app.RunSearchAPI.java

@RequestMapping(value = "http://localhost:9200/yahoo/news/_search?search_type=dfs_query_then_fetch", method = RequestMethod.GET)
public String testSearch(HttpServletRequest request, HttpServletResponse response) {
    response.setContentType("text/html;charset=UTF-8");

    return null;/*from   w  w w . j  ava2s .c  o m*/
}