Java 类org.springframework.boot.autoconfigure.web.ResourceProperties 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:EndpointWebMvcHypermediaManagementContextConfiguration.java   
@ConditionalOnEnabledEndpoint("actuator")
@Bean
public HalJsonMvcEndpoint halJsonMvcEndpoint(
        ManagementServletContext managementServletContext,
        ResourceProperties resources, ResourceLoader resourceLoader) {
    if (HalBrowserMvcEndpoint.getHalBrowserLocation(resourceLoader) != null) {
        return new HalBrowserMvcEndpoint(managementServletContext);
    }
    return new HalJsonMvcEndpoint(managementServletContext);
}
项目:spring-boot-concourse    文件:EndpointWebMvcHypermediaManagementContextConfiguration.java   
@ConditionalOnEnabledEndpoint("actuator")
@Bean
public HalJsonMvcEndpoint halJsonMvcEndpoint(
        ManagementServletContext managementServletContext,
        ResourceProperties resources, ResourceLoader resourceLoader) {
    if (HalBrowserMvcEndpoint.getHalBrowserLocation(resourceLoader) != null) {
        return new HalBrowserMvcEndpoint(managementServletContext);
    }
    return new HalJsonMvcEndpoint(managementServletContext);
}
项目:contestparser    文件:EndpointWebMvcHypermediaManagementContextConfiguration.java   
@ConditionalOnProperty(prefix = "endpoints.actuator", name = "enabled", matchIfMissing = true)
@Bean
public ActuatorHalJsonEndpoint actuatorMvcEndpoint(
        ManagementServletContext managementServletContext,
        ResourceProperties resources, ResourceLoader resourceLoader) {
    if (ActuatorHalBrowserEndpoint.getHalBrowserLocation(resourceLoader) != null) {
        return new ActuatorHalBrowserEndpoint(managementServletContext);
    }
    return new ActuatorHalJsonEndpoint(managementServletContext);
}
项目:unity    文件:WebConfig.java   
@Autowired
public WebConfig(final ResourceProperties resourceProperties) {
    this.resourceProperties = resourceProperties;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:LocalDevToolsAutoConfigurationTests.java   
@Test
public void resourceCachePeriodIsZero() throws Exception {
    this.context = initializeAndRun(WebResourcesConfig.class);
    ResourceProperties properties = this.context.getBean(ResourceProperties.class);
    assertThat(properties.getCachePeriod()).isEqualTo(0);
}
项目:spring-boot-concourse    文件:LocalDevToolsAutoConfigurationTests.java   
@Test
public void resourceCachePeriodIsZero() throws Exception {
    this.context = initializeAndRun(WebResourcesConfig.class);
    ResourceProperties properties = this.context.getBean(ResourceProperties.class);
    assertThat(properties.getCachePeriod()).isEqualTo(0);
}
项目:contestparser    文件:LocalDevToolsAutoConfigurationTests.java   
@Test
public void resourceCachePeriodIsZero() throws Exception {
    this.context = initializeAndRun(WebResourcesConfig.class);
    ResourceProperties properties = this.context.getBean(ResourceProperties.class);
    assertThat(properties.getCachePeriod(), equalTo(0));
}