What is the role of the Spring Security framework?
What Spring Security does for authentication, authorization and attack protection, with a modern SecurityFilterChain setup, password encoding and JWT resource server.
2,882 posts about Java: questions with answers, tutorials and articles, newest first.
What Spring Security does for authentication, authorization and attack protection, with a modern SecurityFilterChain setup, password encoding and JWT resource server.
Secure a Spring Boot app with a SecurityFilterChain bean, hashed passwords, JWT bearer validation and method-level rules, using current Spring Security 6 APIs.
@FeignClient turns a Java interface into a REST client in Spring Cloud OpenFeign. See setup, key attributes, load balancing, fallbacks and modern alternatives.
Define a REST client as a Java interface with @FeignClient and let Spring generate it, with load balancing, timeouts and Resilience4j fallbacks.
@EnableFeignClients makes Spring Cloud OpenFeign scan for @FeignClient interfaces and register them as beans, so you can call remote REST services declaratively.
Sleuth ended with Spring Boot 2. See how to trace requests across services with Micrometer Tracing and OpenTelemetry, and how to migrate from Sleuth.
@RefreshScope lets Spring beans pick up changed configuration without a restart by recreating them after a call to the Actuator refresh endpoint.
Set up a Git-backed Config Server, connect clients with spring.config.import, refresh properties at runtime and encrypt secrets in Spring Cloud Config.
Resilience4j's CircuitBreaker tracks call outcomes and opens when a dependency fails, then probes for recovery. See states, config and Spring Boot usage.
Use Spring Cloud Circuit Breaker with Resilience4j through CircuitBreakerFactory, configure defaults per circuit, and add fallbacks in servlet and reactive apps.
@EnableZuulProxy enabled Zuul 1 as an API gateway and is no longer in current Spring Cloud. Learn the migration path to Spring Cloud Gateway.
Learn to set up Spring Cloud Gateway as an API gateway: pick the right starter, define routes in YAML or Java, and add load balancing, circuit breakers and rate limiting.
@LoadBalanced makes a RestTemplate, RestClient.Builder or WebClient.Builder resolve service names through Spring Cloud LoadBalancer and pick an instance per request.
Configure Spring Cloud LoadBalancer with @LoadBalanced RestClient or WebClient, pick algorithms, filter instances and handle retries safely.
The annotation marks an app as a service discovery client. See how it works with Eureka, why it is now optional, and how Ribbon was replaced.
A current guide to Eureka server and client setup, plus calling services by name with Spring Cloud LoadBalancer instead of the removed Ribbon.
The Eureka server is the service registry of a Spring Cloud system. It lets microservices register, renew and discover each other by name.
Spring Cloud adds configuration, discovery, gateway, resilience and tracing to Spring Boot services. See the current components and how they fit together.
@EnableBatchProcessing registers the JobRepository, JobLauncher and related Spring Batch beans. See Spring Batch 5 job setup and why Boot 3 backs off when it is present.
Spring Batch commits one transaction per chunk, using the transaction manager you pass to the step. Learn chunk sizing, rollback, skip and retry rules.