title: How to expose an resource like downloadable link in Spring boot
body: <p>Actually I have a spring boot server with many files in resource folder (src/main/resources/public/myfilefolder/myfiles.apk). Well my requirement is to download a file with cordova file transfer library. My first idea was put the resource link directly in the component: </p>
  
  <pre><code>    var fileTransfer = new FileTransfer();
  var fileURL =  "///storage/emulated/0/DCIM/myFile";
  var uri = encodeURI("http://myserver/src/main/resources/public/myfilefolder/myfiles.apk");
  
  fileTransfer.download(
      uri,
      fileURL,
      function(entry) {
          alert("download complete: " + entry.toURL());
      },
      function(error) {
          alert("download error source " + error.source);
          alert("download error target " + error.target);
          alert("download error code" + error.code);
      },
      false,
      {
  
        /*
          headers: {
              "Authorization": "Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA=="
          }
  
          */
      }
  </code></pre>
  
  <p>But obviously doesn´t work well, because the server think that it´s a controller route. Any ideas to expose this resource to be downloadable?</p>