Spring boot controller context type download file
17 May 2016 There are three ways you can download a file via Spring MVC. @Controller @RequestMapping("/download") public class need to set the appropriate headers like: Content-Type, Content-Disposition and Content-Length.