How do you handle session management in Spring Security?
Configure Spring Security 6 sessions: creation policy, fixation protection, concurrent session limits, SessionRegistry, timeouts and clean logout.
2,882 posts about Java: questions with answers, tutorials and articles, newest first.
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.
Mixed CSV and database sources fail in different ways. Combine validation, retry, skip limits and a reject table to keep Spring Batch jobs resilient.
Design complex Spring Batch jobs that recover from failures with conditional flows, deciders, compensating steps and restartable parallel branches.
Use Micrometer metrics, listeners and a last-success gauge to monitor Spring Batch jobs that run every few seconds, and alert on staleness and failure rate.
Build adaptive scheduling for low-latency data in Spring Batch with a backlog-aware Trigger, micro-batch jobs, unique parameters and overlap protection.