/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package first;

import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 *
 * @author martin
 */
public class deux {
    @RequestMapping(value="/users/{userid}", method=RequestMethod.GET)
    public void tmp(@PathVariable String ownerId,
                    HttpServletResponse response) throws IOException{
        response.getWriter().write("hello");
    }
    

    @RequestMapping(value="/users", method=RequestMethod.GET)
    public void tmp(HttpServletResponse response) throws IOException{
        response.getWriter().write("hello");
    }
}
