Spring Cloud Config
Centralized configuration with Spring Cloud Config Server, Git backend, dynamic refresh, encryption
1What is the primary role of Spring Cloud Config Server?
What is the primary role of Spring Cloud Config Server?
답변
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.
2Which dependency is required to create a Config Server?
Which dependency is required to create a Config Server?
답변
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.
3Which annotation enables Config Server in a Spring Boot application?
Which annotation enables Config Server in a Spring Boot application?
답변
@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.
What is the default configuration backend for Spring Cloud Config Server?
How to configure the Git repository URL in Config Server?
+16 면접 질문