Example usage for org.springframework.boot.autoconfigure.template TemplateAvailabilityProviders getProvider

List of usage examples for org.springframework.boot.autoconfigure.template TemplateAvailabilityProviders getProvider

Introduction

In this page you can find the example usage for org.springframework.boot.autoconfigure.template TemplateAvailabilityProviders getProvider.

Prototype

public TemplateAvailabilityProvider getProvider(String view, ApplicationContext applicationContext) 

Source Link

Document

Get the provider that can be used to render the given view.

Usage

From source file:org.springframework.boot.autoconfigure.web.servlet.WelcomePageHandlerMapping.java

private boolean welcomeTemplateExists(TemplateAvailabilityProviders templateAvailabilityProviders,
        ApplicationContext applicationContext) {
    return templateAvailabilityProviders.getProvider("index", applicationContext) != null;
}