title: Rest API call with Spring
body: <p>I faced a problem while trying to access a basic rest api I've created. I get the famous 404 error when i type   <a href="http://localhost:8080/projectName/rest/hello" rel="nofollow noreferrer">http://localhost:8080/projectName/rest/hello</a> , as you can see in the code snippet below, I expect a "Hello world" String as response. 
  I think I am missing some extra configuration there..</p>
  
  <p>Any advice  would be appreciated</p>
  
  <pre><code>@Controller
  @JsonIgnoreProperties(ignoreUnknown=true)
  @RequestMapping("/rest")
  
  public class EntityController {
  
      @RequestMapping(value="/hello" , method=RequestMethod.GET , produces=MediaType.TEXT_PLAIN_VALUE) 
      public @ResponseBody String hello() {
          return "Hello world";
      }
  }
  </code></pre>