Package org.thymeleaf.spring3.templateresolver

Examples of org.thymeleaf.spring3.templateresolver.SpringResourceTemplateResolver


        String suffix = ".thtml";

        LOG.info( "Registering development Thymeleaf lookup for {} with physical path {}", views.getKey(),
                  views.getValue() );

        TemplateResolver resolver = new SpringResourceTemplateResolver();
        resolver.setOrder( 19 );
        resolver.setCharacterEncoding( "UTF-8" );
        resolver.setTemplateMode( "HTML5" );
        resolver.setCacheable( false );
        resolver.setPrefix( prefix );
        resolver.setSuffix( suffix );

        applicationContext.getAutowireCapableBeanFactory().initializeBean( resolver,
                                                                           "developmentResolver." + views
                                                                               .getKey() );
View Full Code Here


  }

  @Bean
  @Exposed
  public TemplateResolver templateResolver() {
    TemplateResolver resolver = new SpringResourceTemplateResolver();
    resolver.setCharacterEncoding( "UTF-8" );
    resolver.setTemplateMode( "HTML5" );
    resolver.setCacheable( !developmentMode.isActive() );
    resolver.setPrefix( "classpath:/views/" );
    resolver.setSuffix( ".thtml" );
    resolver.setOrder( 20 );

    return resolver;
  }
View Full Code Here

TOP

Related Classes of org.thymeleaf.spring3.templateresolver.SpringResourceTemplateResolver

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.