Skip to content

Disabling the server for actual application #445

Closed
@andrewlandfried

Description

@andrewlandfried

The context

I have the server dependencies included in my project because I want to make some mock servers for some integration tests. However, in my actual application, I only need the client.

The question

When I start my application, I notice this log line:
method=createAndStartGrpcServer line=91 - gRPC Server started, listening on address: *, port: 9090

Is there a way to disable the server? I didn't see too much about the actual configuration properties in the documentation other than being able to change the port.

The application's environment

Which versions do you use?

  • Spring (boot): 2.3.4
  • grpc-java: 1.31.1
  • grpc-spring-boot-starter: 2.10.1.LATEST
  • java: version + architecture (64bit?) 64 bit java 11
  • Other relevant libraries...

Metadata

Metadata

Assignees

No one assigned

    Labels

    feedback requiredInformation are missing or feedback for suggestions is requestedquestionA question about this library or its usage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions