Spring Boot Actuator
Actuator for monitoring: endpoints (/health, /metrics, /info), metrics, health checks, configuration
1Which Maven dependency enables Spring Boot Actuator?
Which Maven dependency enables Spring Boot Actuator?
Antwort
Spring Boot Actuator is enabled by adding the spring-boot-starter-actuator dependency to the project. This dependency includes all monitoring features and automatically activates basic endpoints like /health and /info. Spring Boot's auto-configuration detects this dependency and configures the endpoints without requiring additional configuration.
2What is the default path for Actuator endpoints?
What is the default path for Actuator endpoints?
Antwort
By default, all Actuator endpoints are exposed under the /actuator prefix. This convention groups all monitoring endpoints in a single location and simplifies security by targeting this specific prefix. The prefix can be customized via the management.endpoints.web.base-path property if needed.
3Which two endpoints are exposed by default via HTTP?
Which two endpoints are exposed by default via HTTP?
Antwort
Spring Boot Actuator only exposes /health and /info endpoints by default via HTTP for security reasons. These endpoints provide non-sensitive information about the application's state. All other endpoints like /metrics, /env, or /loggers must be explicitly enabled in configuration to prevent accidental exposure of sensitive data in production.
Which status indicates the application is ready to receive traffic?
Which library does Spring Boot Actuator use for metrics collection?
+17 Interview-Fragen
Weitere Spring Boot-Interviewthemen
Spring Core - IoC & DI
Spring Boot Auto-Configuration
Spring Boot Starters
Application Properties & YAML
Logging with SLF4J & Logback
Spring Boot DevTools
Spring MVC Basics
Spring REST Controllers
Request & Response Handling
Exception Handling
Bean Validation
Spring Data JPA Basics
JPA Entities & Relationships
JPA Queries
Spring Data Repositories
Spring Security Basics
Unit Testing with JUnit & Mockito
Spring Boot Testing
Profiles & Environment
RestTemplate & WebClient
Async & Scheduling
Caching with Spring
Spring WebFlux (Reactive)
Spring Transactions
Advanced Authentication & Authorization
JWT & Stateless Security
OAuth2 & Authorization Server
Spring Boot & Docker
Microservices with Spring
Spring Cloud Config
Performance Optimization
GraalVM Native Images
Meistere Spring Boot für dein nächstes Interview
Zugang zu allen Fragen, Flashcards, technischen Tests, Code-Review-Übungen und Interview-Simulatoren.
Kostenlos starten