title: Rest service is not working on spring boot application
body: <p>I have created a spring boot application which is working fine but I am not able to get rest service which is clubbed with that application. Please find below code. I am able to access url <a href="http://localhost:8080/springbootr/" rel="nofollow">http://localhost:8080/springbootr/</a> but not able to access web-service url <a href="http://localhost:8080/springbootr/Hello/" rel="nofollow">http://localhost:8080/springbootr/Hello/</a>, getting 404 at the moment of web service calling.</p>
  
  <pre><code>@Configuration
  @ComponentScan(basePackages={"controller"})
  
  @SpringBootApplication
  public class Application {
      public static void main(String[] args) throws Exception {
           SpringApplication.run(new Object[] { Application.class }, args);
      }
  }
  
  @RestController
  public class UserController {
  
      @RequestMapping(value ="/Hello/", method = RequestMethod.GET)
      public String greeting() {
          System.out.println("Achyut");
          return "HEllo";
      }
  }
  </code></pre>
  
  <p>pom.xml:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.yash&lt;/groupId&gt;
    &lt;artifactId&gt;springbootr&lt;/artifactId&gt;
    &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  
  
    &lt;name&gt;spring-resource&lt;/name&gt;
    &lt;description&gt;spring-resource&lt;/description&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;properties&gt;
       &lt;java.version&gt;1.7&lt;/java.version&gt;
    &lt;/properties&gt;
  
    &lt;parent&gt;
         &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
         &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
         &lt;version&gt;1.2.3.RELEASE&lt;/version&gt;
    &lt;/parent&gt;
    &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
    &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>I am new to this application, please help me out.</p>