Implementing JWT-Based Authentication and Authorization with Spring Security

This guide provides a comprehensive walkthrough for building robust authentication and authorization mechanisms using Spring Security with JWT tokens, Redis session storage, and database-backed user management. Core Concepts of Access Control Any system involving user participation requires access control mechanisms as part of its security arch ...

Posted on Sat, 25 Jul 2026 16:21:40 +0000 by THW

Configuring AuthenticationManager in Spring Security 5.7+ Without WebSecurityConfigurerAdapter

With Spring Security 5.7.4, the framework has depercated WebSecurityConfigurerAdapter, requiring develoeprs to adopt new configuration patterns. When implementing custom authentication filters that extend UsernamePasswordAuthenticationFilter and override the attemptAuthentication method, obtaining an AuthenticationManager instance becomes chall ...

Posted on Thu, 23 Jul 2026 16:31:54 +0000 by RamboJustRambo

Java TCP Socket Implementation and Cloud File Upload Strategies

Fundamentals of Network Communication Network programming facilitates data exchange between processes runing on different machines within a network infrastructure. Common applications include instant messaging, video conferencing, online gaming, and email services. Any scenario involving data transmission across a network relies on underlying n ...

Posted on Tue, 21 Jul 2026 16:27:20 +0000 by FillePille

Generating Configuration Metadata for Spring Boot Libraries

Understanding Spring Boot Configuration Metadata When developing reusable Spring Boot libraries, providing proper configuration metadata ensures that developers using your library get full IDE support including auto-completion, documentation tooltips, and validation warnings. This metadata describes the custom properties your library exposes th ...

Posted on Mon, 20 Jul 2026 17:29:43 +0000 by rocksolidhq

Extracting HTTP Request Parameters in Spring Boot Interceptors

Reading HTTP request parameters within a Spring Boot HandlerInterceptor presents a speicfic challenge: the servlet input stream can only be consumed once. If a downstream controller or another filter reads the body, the interceptor will encounter an empty stream. To resolve this, the request must be wrapped to cache the payload, allowing multip ...

Posted on Mon, 20 Jul 2026 16:39:11 +0000 by LiamH

Implementing Server-Sent Events for Streaming Conversational AI Responses

For streaming responses through Server-Sent Events (SSE), ensure this Nginx configuration is disabled: proxy_buffering off; While OkHttp3 disables redirects by default, Forest implements its own redirect mechanism. To align OkHttp3 with Forest's behavior, configure custom redirect handling in an interceptor. Project Dependencies <dependency& ...

Posted on Fri, 17 Jul 2026 17:00:49 +0000 by tbone-tw

Implementing Idempotency and Duplicate Prevention in Order Creation

Resource Integration Update the hosts file and copy static resources to nginx. Place dynamic template files in the order service's templates directory and adjust resource paths. Configure routing in the gateway similar to creating a new service. SpringSession Integration Import required dependencies according to official documentation and confi ...

Posted on Fri, 17 Jul 2026 16:20:08 +0000 by Daisy Cutter

Implementing Stateless Authentication and Role-Based Access Control with Spring Security

Core Concepts and Architecture Overview Spring Security operates as a comprehensive security framework within the Spring ecosystem. Compared to alternatives like Apache Shiro, it offers a broader feature set and a more extensive community. While lightweight applications often favor Shiro for its simplicity, enterprise-grade systems typically re ...

Posted on Sat, 11 Jul 2026 16:02:50 +0000 by PHPBewildered

Practical Redis Integration with Java and Spring Boot

This guide demonstrates hands-on Redis usage in Java applications, covering direct client interaction via Jedis, configuration best practices, and seamless integration with Spring Boot using both Jedis and Lettuce clients. Command-Line Interaction Before integrating into code, verify Redis connectivity using the CLI: redis-cli -h 192.168.100.11 ...

Posted on Fri, 10 Jul 2026 17:22:49 +0000 by madwormer2

Flower E-commerce Platform with Spring Boot and Vue.js Architecture

Backend Implementation The application utilizes Spring Boot for backend services with MyBatis as the persistence layer. This configuration enables efficient database operations while maintaining clean separation of concerns. @SpringBootApplication @RestController public class FlowerShopApplication { public static void main(String[] args) { ...

Posted on Fri, 10 Jul 2026 17:14:31 +0000 by transparencia