My controller method looks like this :
public void doLogin(HttpServletRequest request, HttpServletResponse response) throws IOException {
and I want to do this
ResponseEntity<String> responseEntity = restTemplate.postForEntity(testPrefix + "/login", map, String.class);
response = responseEntity;
or similar, basically make a restcall and return the HttpReponseEntity as the response n its enitirety
ResponseEntitytoHttpServletResponse; what's the use case?WebSecurityConfigwithHttpSecurity.exceptionHandling().accessDeniedHandler(...)I have to override such a method. It would be nice to have some kind of translator for this instead of doing it manually.