mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Polish "Backoff from exposing gRPC server port if gRPC is not available"
See gh-50825
This commit is contained in:
+2
-1
@@ -25,6 +25,7 @@ import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||
import org.springframework.boot.env.ConfigTreePropertySource.Value;
|
||||
import org.springframework.boot.grpc.server.autoconfigure.GrpcServerAutoConfiguration;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.ApplicationListener;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
@@ -52,7 +53,7 @@ import org.springframework.grpc.server.lifecycle.GrpcServerStartedEvent;
|
||||
* @author Stephane Nicoll
|
||||
* @since 4.1.1
|
||||
*/
|
||||
@AutoConfiguration(beforeName = "org.springframework.boot.grpc.server.autoconfigure.GrpcServerAutoConfiguration")
|
||||
@AutoConfiguration(before = GrpcServerAutoConfiguration.class)
|
||||
@ConditionalOnClass(GrpcServerStartedEvent.class)
|
||||
public final class GrpcServerPortInfoAutoConfiguration {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user