use of cn.taketoday.web.view.BeanNameViewResolver in project today-framework by TAKETODAY.
the class WebMvcAutoConfiguration method beanNameViewResolver.
@Component
@ConditionalOnBean(View.class)
@ConditionalOnMissingBean
public BeanNameViewResolver beanNameViewResolver() {
BeanNameViewResolver resolver = new BeanNameViewResolver();
resolver.setOrder(Ordered.LOWEST_PRECEDENCE - 10);
return resolver;
}
use of cn.taketoday.web.view.BeanNameViewResolver in project today-framework by TAKETODAY.
the class ViewResolverRegistry method beanName.
/**
* Register a bean name view resolver that interprets view names as the names
* of {@link cn.taketoday.web.view.View} beans.
*/
public void beanName() {
BeanNameViewResolver resolver = new BeanNameViewResolver();
viewResolvers.add(resolver);
}
use of cn.taketoday.web.view.BeanNameViewResolver in project today-infrastructure by TAKETODAY.
the class ViewResolverRegistry method beanName.
/**
* Register a bean name view resolver that interprets view names as the names
* of {@link cn.taketoday.web.view.View} beans.
*/
public void beanName() {
BeanNameViewResolver resolver = new BeanNameViewResolver();
viewResolvers.add(resolver);
}
use of cn.taketoday.web.view.BeanNameViewResolver in project today-infrastructure by TAKETODAY.
the class WebMvcAutoConfiguration method beanNameViewResolver.
@Component
@ConditionalOnBean(View.class)
@ConditionalOnMissingBean
public BeanNameViewResolver beanNameViewResolver() {
BeanNameViewResolver resolver = new BeanNameViewResolver();
resolver.setOrder(Ordered.LOWEST_PRECEDENCE - 10);
return resolver;
}
Aggregations