title: spring RESTful service work fine, but throws an exception
body: <p>I am creating a spring RESTful service, and it is working. My client send an object into a put request and my service receive this object perfectly, but after this, my client receive this exception: "org.springframework.web.client.HttpClientErrorException: 404 Not Found"</p>
  
  <p>This is my client code:</p>
  
  <pre><code>    RestTemplate restTemplate = new RestTemplate();
      restTemplate.getMessageConverters().add(new MappingJackson2HttpMessageConverter());
  
      Greeting greeting = new Greeting(21l, FileUtils.toByteArray("src/main/resources/test.png"));         
      String url = "http://localhost:8080/DolphinRestServer/bulletin/put";
  
      restTemplate.put(url,greeting);
  </code></pre>
  
  <p>And this is my server code:</p>
  
  <pre><code>@Service
  @RequestMapping("/bulletin")
  public class BulletinService {
  
  @RequestMapping(method = RequestMethod.PUT, value = "/put")
      public void put(@RequestBody Greeting greeting){
          System.out.println("it's work fine and my greeting is here ---------&gt;"+greeting);
      }
  }
  </code></pre>
  
  <p>When tested, i get those messages:</p>
  
  <p><strong>-server side:</strong>
  <img src="https://i.stack.imgur.com/dFOka.png" alt="enter image description here"></p>
  
  <p><strong>-Client side:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/pYvmD.png" alt="Client side image"></p>