Java 类org.springframework.boot.autoconfigure.condition.ConditionalOnJava 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:WebSocketAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean(name = "websocketContainerCustomizer")
@ConditionalOnJava(JavaVersion.SEVEN)
public TomcatWebSocketContainerCustomizer websocketContainerCustomizer() {
    return new TomcatWebSocketContainerCustomizer();
}
项目:spring-boot-concourse    文件:WebSocketAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean(name = "websocketContainerCustomizer")
@ConditionalOnJava(JavaVersion.SEVEN)
public TomcatWebSocketContainerCustomizer websocketContainerCustomizer() {
    return new TomcatWebSocketContainerCustomizer();
}