I have RequestMapping annotation placed in the class level:
@RequestMapping("view")
public class MyClas {...}
I have my method annotated with renderMapping:
@RenderMapping(params = "portletAction=myAction")
public String MyAction(RenderRequest renderRequest, RenderResponse response, @ModelAttribute Bean bean, BindingResult result,
Model model) {...}
The problem is that after calling myAction()
and returning to home page
,
when pressing F5
, this method is called
again,
so I thought to implement the Post/Redirect/Get
pattern,
but all the solutions I found in stackoverflow
where related to modifying the RequestMapping
,
that I can not do, since it is in class
level, and the class
has a lot of other methods
.
Does anyone have any idea what to do in this case?