The underlying class where this is handled is ResourceHttpMessageConverter and it closes the underlying input stream as is evident from here
More Related Contents:
- How to handle static content in Spring MVC?
- Serving static web resources in Spring Boot & Spring Security application
- How to use Session attributes in Spring-mvc
- Setting Precedence of Multiple @ControllerAdvice @ExceptionHandlers
- Spring MVC: How to return image in @ResponseBody?
- Neither BindingResult nor plain target object for bean name available as request attribute [duplicate]
- Spring MVC: Validation, Post-Redirect-Get, Partial Updates, Optimistic Concurrency, Field Security
- When to use Spring Security`s antMatcher()?
- @ModelAttribute annotation, when to use it?
- Sending Multipart File as POST parameters with RestTemplate requests
- CharacterEncodingFilter don’t work together with Spring Security 3.2.0
- Difference between Request MVC and Component MVC [closed]
- Spring mvc @PathVariable
- How to create a Spring Interceptor for Spring RESTful web services
- Dynamic Selection Of JsonView in Spring MVC Controller
- ContentCachingResponseWrapper Produces Empty Response
- StrictHttpFirewall in spring security 4.2 vs spring MVC @MatrixVariable
- Can Spring MVC handle multivalue query parameter?
- How to configure Spring Security to allow Swagger URL to be accessed without authentication
- Load different application.yml in SpringBoot Test
- Difference between JAX-RS and Spring Rest
- Which is better, return “ModelAndView” or “String” on spring3 controller
- Is it possible to dynamically set RequestMappings in Spring MVC?
- Web-application context/ root application context and transaction manager setup
- Spring MVC : read file from src/main/resources
- ServletContext and Spring MVC
- Http Post with request content type form not working in Spring MVC 3
- What does do?
- Angular 2 Spring Boot Login CORS Problems
- Does Spring @RequestBody support the GET method?