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:info.lejin.raphael.controller.FrontController.java

@RequestMapping(method = RequestMethod.GET, path = "admin/home")
public ModelAndView getUsers() {
    ModelAndView view = new ModelAndView("admin/index");
    List<User> userlist = userDao.list();
    userlist.forEach(user -> System.out.println(user.getUsername()));
    view.addObject("users", userlist);
    return view;//w w  w .  ja va  2  s  .  co  m
}

From source file:net.triptech.buildulator.web.HomepageController.java

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

From source file:br.uff.sti.control.EventoController.java

@RequestMapping(value = "semana", method = RequestMethod.GET)
List<Evento> mediciana2016() {
    return consultas.periodoInscricao2016SQL();
}

From source file:com.emc.licensekey.activation.controller.SiteController.java

@RequestMapping(value = "list", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public @ResponseBody String getSiteDetails(@RequestParam String userId) {
    try {//  w w w  .  j a v a 2s  .c  o m
        return JsonUtil.getJSonString(siteService.getUserSiteDetails(userId));
    } catch (JsonGenerationException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (JsonMappingException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
    return null;
}

From source file:hola.ControladorUsuario.java

@RequestMapping(value = "/mensaje", method = RequestMethod.GET, headers = { "Accept=text/html" })
@ResponseBody/*from w w w.ja  va  2  s . c  o  m*/
String mensaje() {

    return "Hola desde spring!!";
}

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

@RequestMapping(value = "/{id}", method = RequestMethod.GET)
public String doGet(@PathVariable("id") int id, ModelMap map) {
    Medicine medicine = medicineDao.getById(id);
    if (medicine == null) {
        return "redirect:/display?error";
    }//w w w .  jav a  2s. c o  m
    map.addAttribute("med", medicine);
    return "medicine/edit";
}

From source file:net.groupbuy.controller.admin.PaymentPluginController.java

/**
 * /*from   w ww . ja v a  2  s .  c  om*/
 */
@RequestMapping(value = "/list", method = RequestMethod.GET)
public String list(ModelMap model) {
    model.addAttribute("paymentPlugins", pluginService.getPaymentPlugins());
    return "/admin/payment_plugin/list";
}

From source file:net.groupbuy.controller.admin.StoragePluginController.java

/**
 * // w  w w  .java  2  s  .co m
 */
@RequestMapping(value = "/list", method = RequestMethod.GET)
public String list(ModelMap model) {
    model.addAttribute("storagePlugins", pluginService.getStoragePlugins());
    return "/admin/storage_plugin/list";
}

From source file:net.triptech.buildulator.web.AboutController.java

@RequestMapping(method = RequestMethod.GET)
public String about() {
    return "about";
}

From source file:net.triptech.buildulator.web.LoginController.java

@RequestMapping(method = RequestMethod.GET)
public String login() {
    return "login";
}