What is the role of the @Configuration annotation in a starter?
How configuration classes power a custom Spring Boot starter: @AutoConfiguration, conditional beans, properties binding and the AutoConfiguration.imports file.
Spread Your Knowledge. Questions with answers, tutorials and articles, newest first.
How configuration classes power a custom Spring Boot starter: @AutoConfiguration, conditional beans, properties binding and the AutoConfiguration.imports file.
Build a custom Spring Boot starter with auto-configuration, configuration properties and conditional beans, registered through the AutoConfiguration.imports file.
UserDetailsService loads a user by username so Spring Security can authenticate them. See the flow and a working Spring Security 6 implementation.
SessionManagementConfigurer configures how Spring Security creates and protects HTTP sessions: creation policy, fixation protection and concurrent session limits.
Configure Spring Security 6 sessions: creation policy, fixation protection, concurrent session limits, SessionRegistry, timeouts and clean logout.
Model roles and permissions as authorities, load them in a UserDetailsService, and enforce them with URL rules and @PreAuthorize in Spring Security 6.
PasswordEncoder hashes passwords with a salt and verifies logins safely. Learn which implementation to choose and how to upgrade old hashes on login.
Build JWT authentication for a Spring Boot 3 REST API: sign and validate tokens, add a Bearer filter, configure a stateless security chain and harden it.
UsernamePasswordAuthenticationFilter handles form login in Spring Security. See how it extracts credentials, authenticates them and how to configure or replace it.
Configure form-based login with a SecurityFilterChain bean, a UserDetailsService and a Thymeleaf login page, using the Spring Security 6 lambda DSL.
Define a SecurityFilterChain, a UserDetailsService and a password encoder, add method security, and use the JWT resource server for stateless APIs.
Configure circuit breaker, retry, time limiter, rate limiter and bulkhead in Spring Boot 3 with Resilience4j 2.x, including fallbacks and Actuator monitoring.
Validate items early with Bean Validation, skip and record bad records within limits, keep jobs restartable and watch reject ratios against your SLA.
Use a ratio-based SkipPolicy, exponential-backoff retry, skip listeners and metrics to make Spring Batch fault handling adapt to high-frequency workloads.
Export Spring Batch metrics with Micrometer and Prometheus, add backlog and skip metrics, and alert on forecasts before a high-volume job fails.
Retry transient errors, skip bad records, restart from the last chunk and scale with partitions to keep high-frequency Spring Batch jobs fast and reliable.
Validate items in the processor, load rules once per step, choose between filter and skip, and keep per-item overhead low in Spring Batch jobs.
Combine Spring Batch listeners, bounded skip and retry policies, reject tracking and metrics to detect faults in jobs that mix databases, files and APIs.
Learn how to scale Spring Batch for millions of records using chunk tuning, batched writers, multi-threaded steps, partitioning and fault tolerance.
Predict SLA misses in Spring Batch by projecting finish time from throughput, then recover with retry, skip, restart or extra partitions.