类 GrpcServerService

java.lang.Object
cn.iosd.starter.grpc.server.GrpcServerService
所有已实现的接口:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware

@Service public class GrpcServerService extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
启动服务端

服务端口读取配置项:simple.grpc.server.port

扫描使用GrpcService注解的Bean->添加到io.grpc.ServerBuilder

作者:
ok1996
  • 构造器详细资料

    • GrpcServerService

      public GrpcServerService()
  • 方法详细资料

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      指定者:
      setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
      抛出:
      org.springframework.beans.BeansException
    • afterPropertiesSet

      public void afterPropertiesSet() throws IOException
      指定者:
      afterPropertiesSet 在接口中 org.springframework.beans.factory.InitializingBean
      抛出:
      IOException