Spring Boot

Spring Cloud Config

Centralized configuration with Spring Cloud Config Server, Git backend, dynamic refresh, encryption

19 domande da colloquio·
Senior
1

What is the primary role of Spring Cloud Config Server?

Risposta

Spring Cloud Config Server centralizes configuration management for all microservices. It allows storing configurations in an external repository (Git, filesystem, Vault) and distributing them to client applications. This facilitates configuration changes without redeployment and ensures consistency across environments.

2

Which dependency is required to create a Config Server?

Risposta

spring-cloud-starter-config-server is the starter that contains all necessary dependencies to create a Config Server. It includes Spring Cloud Config Server, the embedded web server, and components needed to expose configuration endpoints. Then simply enable it with @EnableConfigServer.

3

Which annotation enables Config Server in a Spring Boot application?

Risposta

@EnableConfigServer activates Spring Cloud Config Server features in the application. This annotation automatically configures necessary endpoints to expose configurations to clients, initializes the backend repository (Git, filesystem, etc.), and sets up the server to respond to configuration requests following the /{application}/{profile}/{label} pattern.

4

What is the default configuration backend for Spring Cloud Config Server?

5

How to configure the Git repository URL in Config Server?

+16 domande da colloquio

Padroneggia Spring Boot per il tuo prossimo colloquio

Accedi a tutte le domande, flashcards, test tecnici, esercizi di code review e simulatori di colloquio.

Inizia gratis