0

We have an annotation-based Spring MVC app with embedded Jetty. I want to have a "downloads" directory next to our application jar file, and have requests for "/downloads/*" send files from that directory.

I thought it would be simple, but can't find a simple way to do it.

Can anyone please help?

splintor
  • 9,924
  • 6
  • 74
  • 89
  • http://stackoverflow.com/questions/1442893/implementing-a-simple-file-download-servlet – JB Nizet Jan 02 '16 at 23:15
  • Thanks, but that's not exactly what I'm looking for. I know I can implement the loading and sending of the file, but I want to make Jetty/Spring do that for me. How can tell Spring that I want a file to be sent? Where should I redirect the request to? – splintor Jan 03 '16 at 04:25

0 Answers0