Skip to content

ServerApplicationService

恒宇少年 edited this page Sep 9, 2020 · 7 revisions

消息管道服务端(Server)目前集成了两种启动服务监听的方式,分别是:NacosGrpc

Nacos

如果我们在集成服务端时使用Nacos的方式,则会实例化org.minbox.framework.message.pipe.server.service.NacosServerApplicationService服务类。

启用Nacos服务监听

@Configuration
@EnableMessagePipeServer(serverType = ServerServiceType.NACOS)
public class MessagePipeServerConfiguration {
  // ...
}

Grpc

Clone this wiki locally