Example usage for org.springframework.web.servlet.mvc.method.annotation RequestMappingHandlerAdapter setIgnoreDefaultModelOnRedirect

List of usage examples for org.springframework.web.servlet.mvc.method.annotation RequestMappingHandlerAdapter setIgnoreDefaultModelOnRedirect

Introduction

In this page you can find the example usage for org.springframework.web.servlet.mvc.method.annotation RequestMappingHandlerAdapter setIgnoreDefaultModelOnRedirect.

Prototype

public void setIgnoreDefaultModelOnRedirect(boolean ignoreDefaultModelOnRedirect) 

Source Link

Document

By default the content of the "default" model is used both during rendering and redirect scenarios.

Usage

From source file:org.fuzzydb.samples.mvc.config.WebMvcConfig.java

@Override
@Bean//from   w  ww.j a v  a2s  .c o  m
public RequestMappingHandlerAdapter requestMappingHandlerAdapter() {
    RequestMappingHandlerAdapter adapter = super.requestMappingHandlerAdapter();
    adapter.setIgnoreDefaultModelOnRedirect(true);
    return adapter;
}