/** * Introduce a Tiles view resolver, this is a convenience implementation that extends URLBasedViewResolver. * * @return tiles view resolver */ @Bean public TilesViewResolver tilesViewResolver() { final TilesViewResolver resolver = new TilesViewResolver(); resolver.setViewClass(TilesView.class); return resolver; }
private TilesRegistration() { super(new TilesViewResolver()); }
@Test public void tiles() { this.registry.tiles(); checkAndGetResolver(TilesViewResolver.class); }
@Bean public TilesViewResolver tilesViewResolver() { final TilesViewResolver resolver = new TilesViewResolver(); resolver.setViewClass(TilesView.class); return resolver; }
@Override public void configureViewResolvers(ViewResolverRegistry registry) { TilesViewResolver viewResolver = new TilesViewResolver(); viewResolver.setViewClass(TilesView.class); registry.viewResolver(viewResolver); }