I have a spring-boot app with swagger code generator. Since the controllers are autogenerated from swagger yaml I don't think I can modify the controllers to access the HttpServletResponse.
Is there a way to access the HttpServletResponse from a class annotated with @Component?
I am trying to access the HttpServletResponse instance in order to set a cookie.