类 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
构造器详细资料
-
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
- 指定者:
afterPropertiesSet在接口中org.springframework.beans.factory.InitializingBean- 抛出:
IOException
-