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:main.java.com.celantinteractive.updates.UpdatesController.java

@RequestMapping(value = APIEndpoints.GET_LATEST_VERSION, method = RequestMethod.GET, consumes = "*/*", produces = "application/json")
public ResponseUpdate getLatestVersion() {

    UpdatesLogic logic = new UpdatesLogic();

    return logic.processGetLatestVersion();
}

From source file:pl.lodz.uni.math.controller.LoggedIn.java

@RequestMapping(method = RequestMethod.GET)
public String printWelcome(ModelMap model) {

    model.addAttribute("message", "Spring security !! ");
    return "admin/admin";
}

From source file:com.alliander.osgp.webdevicesimulator.web.controller.HomeController.java

/**
 * Simply selects the home view to render by returning its name.
 *///from   w w  w . j  a  v a  2  s  .com
@RequestMapping(value = "/", method = RequestMethod.GET)
public String home() {
    return "redirect:/devices";
}

From source file:AgendaSpringH.controladores.Controlador.java

@RequestMapping(method = RequestMethod.GET)
public String showValidatinForm(Map model) {
    ValidationForm validationForm = new ValidationForm();
    model.put("validationForm", validationForm);
    return "validationform";
}

From source file:mybabthis.controller.LicenseController.java

@RequestMapping(value = "/license/myLicense", method = RequestMethod.GET, params = { "userId" })
public String getMylicenses(@RequestParam String userId, Model model) {
    logger.trace("?? ? : userId:" + userId);

    List<License> myLicenses = licenseservice.getLicensesById(userId);
    model.addAttribute("myLicenses", myLicenses);
    return "mypage/myinfo";
}

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

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

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

@RequestMapping(value = "/peserta", method = RequestMethod.GET)
Peserta getPeserta() {/*from w  w w.  j  a  v a 2s. c  o m*/
    Peserta p = new Peserta();
    p.setNama("Amanda");
    p.setAlamat("Jakarta");

    return p;
}

From source file:com.sapito.compras.ComprasController.java

@RequestMapping(value = "altaproveedor", method = RequestMethod.GET)
public String altaproveedor(Model model) {
    return "Compras/altaproveedor";
}

From source file:pitayaa.nail.msg.core.packageDtl.controller.PackageDtlController.java

@RequestMapping(value = "packageDtl/model", method = RequestMethod.GET)
public @ResponseBody ResponseEntity<?> initAccountModel() throws Exception {

    PackageDtl packageDtlEntity = (PackageDtl) coreHelper.createModelStructure(new PackageDtl());

    return ResponseEntity.ok(packageDtlEntity);
}

From source file:com.sapito.rh.RecursosHumanosController.java

@RequestMapping(value = "AdminEmpleados", method = RequestMethod.GET)
public String AdminEmpleados(Model model) {

    return "RH/administrarEmpleados";
}