@Configuration @EnableConfigurationProperties(value=ServerInterfacePublishProperties.class) @ConditionalOnProperty(prefix="server.interface.publish", name="enable", havingValue="true", matchIfMissing=true) public class ServerInterfacePublishConfiguration extends Object
服务接口发布配置
| 构造器和说明 |
|---|
ServerInterfacePublishConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
ServerApis |
serverApis(org.springframework.web.context.WebApplicationContext applicationContext,
ServerInterfacePublishProperties publishProperties) |
ServerApisContainer |
serverApisContainer(org.springframework.context.ApplicationEventPublisher publisher,
ServerApis serverApis) |
@Bean public ServerApis serverApis(org.springframework.web.context.WebApplicationContext applicationContext, ServerInterfacePublishProperties publishProperties)
@Bean @Primary @ConditionalOnBean(value=ServerApis.class) public ServerApisContainer serverApisContainer(org.springframework.context.ApplicationEventPublisher publisher, ServerApis serverApis)
Copyright © 2020. All rights reserved.