How to make a controller method to redirect to other site with a post request?

```
    @RequestMapping("/link)
    public RedirectView  goToTheSite(ModelMap model) {
        model.put("name", "wow");
        return new RedirectView("https://www.thesite.com", true, false, false);

    }

```

but, this is not working, 
How to do that in right way?