title: @PathVariable not working with @RestController
body: <p>I'm trying out Spring Boot and I'm facing a trivial problem. I'm unable to use @PathVariable in @RestController. Here is my controller -</p>
  
  <pre><code>package com.harshil.controller;
  
  import org.springframework.web.bind.annotation.*;
  
  @RestController
  public class UserController {
  
      @RequestMapping(name = "/user/{id}/", method = RequestMethod.GET)
      public User getUser(@PathVariable("id") int id) {
          return generateUser(id);
      }
  }
  </code></pre>
  
  <p>This is how I'm calling the endpoint - <a href="http://localhost:8080/user/1/" rel="nofollow noreferrer">http://localhost:8080/user/1/</a></p>
  
  <p>In my previous Spring (not Boot) project I used @PathVariable in a @Controller and it worked fine. I just can't figure out what I may be doing wrong. And idea?</p>