title: My Call Spring Controller failed
body: <p>In my HTML i have this button:</p>
  
  <pre><code>&lt;button id="download_button"&gt;Confirmer&lt;/button&gt;
  </code></pre>
  
  <p>In my Js i have this method:</p>
  
  <pre><code>$("#download_button").click(function() {
     downloadMes();
  });
  
      downloadMes: function(){
          var sources = this.map.getLayers().getArray().map(function(layer){
              var source_url = layer.getSource().getUrls()[0];
              var layer_name = layer.getSource().getParams()['LAYERS'];
              var request = '?VERSION=1.1.0&amp;OUTPUTFORMAT=CSV';
              if(_.includes(this.downloadSources, source_url)){
                  return source_url + request + '&amp;TYPENAME=' + layer_name;
              }
          },this);
          var sourcesToCall = _.compact(sources);
          var jsonfile= {json:JSON.stringify(sourcesToCall)};
          $.ajax({
              type:'POST',
              url: "/downloadCSV",
              data: jsonfile,
              dataType: "json"
          });
      }
  </code></pre>
  
  <p>I have create a Spring Controller --> DownloadCSVController :</p>
  
  <pre><code>import java.io.ByteArrayOutputStream;
  import java.io.IOException;
  import java.util.zip.ZipEntry;
  import java.util.zip.ZipOutputStream;
  
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  
  import org.springframework.stereotype.Controller;
  import org.springframework.ui.ModelMap;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestMethod;
  
  
  @Controller
  public class DownloadCSVController {
  
  
  
      @RequestMapping(value = "/downloadCSV", method = RequestMethod.GET)
      public void getCSV(HttpServletRequest request, HttpServletResponse response, ModelMap model) throws IOException{
  
          System.out.println("DEBUT TELECHARGEMENT");
          // SOME LOGIC
          System.out.println("FIN TELECHARGEMENT");
  
      }
  }
  </code></pre>
  
  <p>When i click on my button i have this error :</p>
  
  <blockquote>
    <p>POST <a href="http://localhost:8080/downloadCSV" rel="nofollow">http://localhost:8080/downloadCSV</a> 404 (Introuvable)</p>
  </blockquote>
  
  <p>What is wrong?</p>