transform Post request using the Post-Redirect-Get pattern in java spring
<p>I would like to transform a post request using the post/redirect/get pattern in order to prevent an "ambiguous handler methods mapped for HTTP path" error. See <a href="https://stackoverflow.com/questions/36910526/spring-ambiguous-handler-methods-mapped-for-http-path?noredirect=1#comment61426513_36910526">This question</a> for details.</p>

<p>Here is the initial code :</p>

<pre><code>@Controller
@RequestMapping("/bus/topologie")
public class TopologieController {
    private static final String VIEW_TOPOLOGIE = "topologie";

    @RequestMapping(method = RequestMethod.POST, params = { "genererCle" })
    public String genererCle(final Topologie topologie, final Model model)
        throws IOException {
        cadreService.genererCle(topologie);
        return VIEW_TOPOLOGIE;
    }
</code></pre>

<p>I don't really understand how to re code it using the PRG pattern. Even if I think that I understand the underlying concept.</p>