Java 类org.springframework.web.servlet.config.annotation.ResourceHandlerRegistration 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:WebMvcAutoConfiguration.java   
private void customizeResourceHandlerRegistration(
        ResourceHandlerRegistration registration) {
    if (this.resourceHandlerRegistrationCustomizer != null) {
        this.resourceHandlerRegistrationCustomizer.customize(registration);
    }

}
项目:spring-boot-concourse    文件:WebMvcAutoConfiguration.java   
private void customizeResourceHandlerRegistration(
        ResourceHandlerRegistration registration) {
    if (this.resourceHandlerRegistrationCustomizer != null) {
        this.resourceHandlerRegistrationCustomizer.customize(registration);
    }

}
项目:contestparser    文件:WebMvcAutoConfiguration.java   
private void registerResourceChain(ResourceHandlerRegistration registration) {
    ResourceProperties.Chain properties = this.resourceProperties.getChain();
    if (properties.getEnabled()) {
        configureResourceChain(properties,
                registration.resourceChain(properties.isCache()));
    }
}
项目:tmply    文件:WebMvcConfig.java   
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry)
{
    ResourceHandlerRegistration staticResources = registry.addResourceHandler("/**");
    staticResources.addResourceLocations("classpath:/public/");
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:WebMvcAutoConfiguration.java   
@Override
public void customize(ResourceHandlerRegistration registration) {
    ResourceProperties.Chain properties = this.resourceProperties.getChain();
    configureResourceChain(properties,
            registration.resourceChain(properties.isCache()));
}
项目:spring-boot-concourse    文件:WebMvcAutoConfiguration.java   
@Override
public void customize(ResourceHandlerRegistration registration) {
    ResourceProperties.Chain properties = this.resourceProperties.getChain();
    configureResourceChain(properties,
            registration.resourceChain(properties.isCache()));
}
项目:freemarker-template-inheritance    文件:FreemarkerTemplateinheritanceConfig.java   
@Override
public void addResourceHandlers(ResourceHandlerRegistry registry) {
    ResourceHandlerRegistration resourceHandlerRegistration = registry.addResourceHandler("/resources");
    resourceHandlerRegistration.addResourceLocations("/WEB-INF/resources");
    resourceHandlerRegistration.setCachePeriod(0);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:WebMvcAutoConfiguration.java   
void customize(ResourceHandlerRegistration registration);
项目:spring-boot-concourse    文件:WebMvcAutoConfiguration.java   
void customize(ResourceHandlerRegistration registration);