Java 类org.springframework.boot.web.servlet.view.velocity.EmbeddedVelocityViewResolver 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:VelocityAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean(name = "velocityViewResolver")
@ConditionalOnProperty(name = "spring.velocity.enabled", matchIfMissing = true)
public EmbeddedVelocityViewResolver velocityViewResolver() {
    EmbeddedVelocityViewResolver resolver = new EmbeddedVelocityViewResolver();
    this.properties.applyToViewResolver(resolver);
    return resolver;
}
项目:spring-boot-concourse    文件:VelocityAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean(name = "velocityViewResolver")
@ConditionalOnProperty(name = "spring.velocity.enabled", matchIfMissing = true)
public EmbeddedVelocityViewResolver velocityViewResolver() {
    EmbeddedVelocityViewResolver resolver = new EmbeddedVelocityViewResolver();
    this.properties.applyToViewResolver(resolver);
    return resolver;
}
项目:contestparser    文件:VelocityAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean(name = "velocityViewResolver")
@ConditionalOnProperty(name = "spring.velocity.enabled", matchIfMissing = true)
public EmbeddedVelocityViewResolver velocityViewResolver() {
    EmbeddedVelocityViewResolver resolver = new EmbeddedVelocityViewResolver();
    this.properties.applyToViewResolver(resolver);
    return resolver;
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:VelocityAutoConfigurationTests.java   
@Test
public void usesEmbeddedVelocityViewResolver() {
    registerAndRefreshContext("spring.velocity.toolbox:/toolbox.xml");
    VelocityViewResolver resolver = this.context.getBean(VelocityViewResolver.class);
    assertThat(resolver).isInstanceOf(EmbeddedVelocityViewResolver.class);
}
项目:spring-boot-concourse    文件:VelocityAutoConfigurationTests.java   
@Test
public void usesEmbeddedVelocityViewResolver() {
    registerAndRefreshContext("spring.velocity.toolbox:/toolbox.xml");
    VelocityViewResolver resolver = this.context.getBean(VelocityViewResolver.class);
    assertThat(resolver).isInstanceOf(EmbeddedVelocityViewResolver.class);
}
项目:contestparser    文件:VelocityAutoConfigurationTests.java   
@Test
public void usesEmbeddedVelocityViewResolver() {
    registerAndRefreshContext("spring.velocity.toolbox:/toolbox.xml");
    VelocityViewResolver resolver = this.context.getBean(VelocityViewResolver.class);
    assertThat(resolver, instanceOf(EmbeddedVelocityViewResolver.class));
}