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:unalm.startbootstrapSbAdmin.controller.programa.ProgramaController.java

@RequestMapping(method = RequestMethod.GET)
public String index(Model model) {

    List<Programa> programas = service.allPrograma();

    model.addAttribute("programas", service.allPrograma());
    return "programa/index";
}

From source file:com.sudin.inventoryapp.controller.DefaultController.java

@RequestMapping(method = RequestMethod.GET)
//@ResponseBody//from  w  w  w  .  ja  v  a2 s .c o m
public String index(ModelMap map) {
    inventoryDAO.insert(new Inventory(0, "pen", 50, 10, null));
    //map.addAttribute("title", "Hello Sudin");
    return "index";
}

From source file:ems.web.controller.other.HireInitController.java

@RequestMapping(value = "/hireApply", method = RequestMethod.GET)
public ModelAndView initResumeForm(@RequestParam String comName, HttpSession httpSession) {
    int memberCode = ((LoginCompleteDTO) httpSession.getAttribute("loginMember")).getCode();

    return new ModelAndView("/hire/hireApply").addObject("name", comName)
            .addObject("academicAbility", resumeServiceImpl.selectAcademicAbility(memberCode))
            .addObject("license", resumeServiceImpl.selectLicense(memberCode))
            .addObject("career", resumeServiceImpl.selectCareer(memberCode))
            .addObject("memberData", resumeServiceImpl.getResumeInitUserData(
                    ((LoginCompleteDTO) httpSession.getAttribute("loginMember")).getId()));
}

From source file:br.unicesumar.escoladeti2015base.cores.CorController.java

@RequestMapping(value = "/{id}", method = RequestMethod.GET)
public Cor getCor(@PathVariable String id) {
    return service.findById(id);
}

From source file:com.mycompany.mvnspringannotation.controller.MainController.java

@RequestMapping(value = "/actors", method = RequestMethod.GET)
public String getActors(Model model) {
    List<Actor> actors = actorService.getAll();

    model.addAttribute("actors", actors);

    return "actorspage";
}

From source file:com.mycompany.projetsportmanager.spring.rest.controllers.EntryPointController.java

@RequestMapping(method = RequestMethod.GET, produces = "application/json; charset=utf-8")
public EntryPointResource entryPointGet() {

    EntryPointResource entryPoint = new EntryPointResource();
    entryPoint.setApplicationName("Sport Manager");

    entryPoint.add(linkTo(UserController.class).withRel("users"));

    return entryPoint;
}

From source file:butla.springapp.SampleController.java

@RequestMapping(value = "/", method = RequestMethod.GET)
@ResponseBody
public String helloWorld() {
    return "Hello World\n";
}

From source file:com.company.controller.DefaultController.java

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

From source file:com.diagrama.repository.EncuestControl.java

@RequestMapping(value = "/taller/{idproducto}", method = RequestMethod.GET)
public ResponseEntity<?> getEncuesta(@PathVariable int idproducto) {
    Iterable<Producto> producto = er.findAll();
    return new ResponseEntity<>(producto, HttpStatus.OK);
}

From source file:cs544.letmegiveexam.controller.UserController.java

@RequestMapping(value = "/register", method = RequestMethod.GET)
public String register(ModelMap model) {
    model.addAttribute("user", new User());
    return "register";
}