CLOSE FULL VIEW
Spring MVC 3.1 Update
Recorded at:
Community comments
Default of true for ignoreDefaultModelOnRedirect seems inaccurate
by
Neale Upstone
Posted
Default of true for ignoreDefaultModelOnRedirect seems inaccurate
by
Neale Upstone
In the presentation, you say that ignoreDefaultModelOnRedirect defaults to true if using @Configuration or <mvc> support, but this doesn't seem to be the case.
I've had to add this to my config:
Has the default changed since the presentation?
A bit of searching in the source code seems to imply that it has.</mvc>
I've had to add this to my config:
@Bean
public RequestMappingHandlerAdapter requestMappingHandlerAdapter() {
RequestMappingHandlerAdapter adapter =
super.requestMappingHandlerAdapter();
adapter.setIgnoreDefaultModelOnRedirect(true);
return adapter;
};
Has the default changed since the presentation?
A bit of searching in the source code seems to imply that it has.</mvc>




Hello stranger!
You need to Register an InfoQ account or Login to post comments. But there's so much more behind being registered.Get the most out of the InfoQ experience.
Tell us what you think