Spring Boot

Spring Cloud Config

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

19 면접 질문·
Senior
1

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.

2

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.

3

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.

4

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

5

How to configure the Git repository URL in Config Server?

+16 면접 질문

다음 면접을 위해 Spring Boot을 마스터하세요

모든 질문, flashcards, 기술 테스트, 코드 리뷰 연습, 면접 시뮬레이터에 접근하세요.

무료로 시작하기