Example usage for org.springframework.web.servlet.view BeanNameViewResolver setOrder

List of usage examples for org.springframework.web.servlet.view BeanNameViewResolver setOrder

Introduction

In this page you can find the example usage for org.springframework.web.servlet.view BeanNameViewResolver setOrder.

Prototype

public void setOrder(int order) 

Source Link

Document

Specify the order value for this ViewResolver bean.

Usage

From source file:com.xpeppers.phonedirectory.config.WebAppConfig.java

@Bean
public BeanNameViewResolver beanNameViewResolver() {
    BeanNameViewResolver viewResolver = new BeanNameViewResolver();
    viewResolver.setOrder(1);
    return viewResolver;
}

From source file:org.wallride.autoconfigure.WallRideWebMvcConfiguration.java

@Bean(name = { "viewResolver", "beanNameViewResolver" })
public BeanNameViewResolver beanNameViewResolver() {
    BeanNameViewResolver viewResolver = new BeanNameViewResolver();
    viewResolver.setOrder(1);
    return viewResolver;
}