Tagged articles
3874 articles
Page 25 of 39
Selected Java Interview Questions
Selected Java Interview Questions
Sep 20, 2022 · Backend Development

Comprehensive Guide to Building an OAuth2 Authentication Server with Spring Boot, MySQL, Nacos, and Gateway Integration

This tutorial walks through designing an OAuth2 authentication architecture, configuring Spring Boot services, setting up MySQL schemas, integrating Nacos discovery, implementing security with JWT tokens, and connecting microservices through a Spring Cloud Gateway, while demonstrating all four OAuth2 grant types with code examples.

NacosOAuth2Spring Boot
0 likes · 26 min read
Comprehensive Guide to Building an OAuth2 Authentication Server with Spring Boot, MySQL, Nacos, and Gateway Integration
Sanyou's Java Diary
Sanyou's Java Diary
Sep 19, 2022 · Backend Development

Mastering Quartz Scheduler in Spring Boot: From Basics to Advanced Integration

This article introduces Quartz, a Java job‑scheduling library, explains its core components (Job, Trigger, Scheduler), provides step‑by‑step Maven demos, shows how to integrate it with Spring Boot, configure persistence, manage concurrency, and handle advanced features like cron expressions and calendar exclusions.

ConcurrencyCronTriggerJob Scheduling
0 likes · 25 min read
Mastering Quartz Scheduler in Spring Boot: From Basics to Advanced Integration
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 19, 2022 · Information Security

Master Spring Security: Web Expression Auth & Advanced @PreAuthorize Techniques

This guide demonstrates how to implement Spring Security authentication and authorization using web expression-based rules, custom beans, path variables, multi‑condition expressions, and advanced @PreAuthorize methods, including parameter‑based checks, custom annotations, and custom logic services within a Spring Boot 2.4 application.

AuthorizationPreAuthorizeSpring Boot
0 likes · 5 min read
Master Spring Security: Web Expression Auth & Advanced @PreAuthorize Techniques
Programmer DD
Programmer DD
Sep 16, 2022 · Backend Development

Master Quartz Scheduler in Spring Boot: From Basics to Advanced Persistence

This article provides a comprehensive guide to using Quartz in Java Spring Boot, covering core concepts, basic and advanced usage—including job creation, triggers, Cron expressions, bean injection, multiple triggers, and persistence with JDBC—complete with code samples and configuration steps.

JavaJobQuartz
0 likes · 22 min read
Master Quartz Scheduler in Spring Boot: From Basics to Advanced Persistence
Programmer DD
Programmer DD
Sep 14, 2022 · Backend Development

Mastering Global Exception Handling in Spring Boot: A Step-by-Step Guide

This article demonstrates how to implement unified global exception handling in a Spring Boot application by defining custom exceptions, creating a @RestControllerAdvice with specific @ExceptionHandler methods, and wiring sample controller endpoints to showcase both system and custom error responses.

JavaREST APISpring Boot
0 likes · 6 min read
Mastering Global Exception Handling in Spring Boot: A Step-by-Step Guide
Java Architect Essentials
Java Architect Essentials
Sep 12, 2022 · Backend Development

Implementing CORS Cross‑Origin Requests in Java Backend (Spring Boot)

This article explains why browsers enforce the Same‑Origin Policy, defines cross‑origin requests, lists the restrictions of non‑same‑origin access, and provides five practical ways—global filter, WebMvcConfigurer, @CrossOrigin annotation, manual header setting, and a custom filter—to enable CORS in Java Spring Boot applications, complete with code examples.

CORSCross-OriginSpring Boot
0 likes · 9 min read
Implementing CORS Cross‑Origin Requests in Java Backend (Spring Boot)
Programmer DD
Programmer DD
Sep 11, 2022 · Backend Development

Mastering Spring & Spring Boot: All Extension Points Explained

This article provides a comprehensive overview of Spring and Spring Boot's extension points, detailing each lifecycle hook, its purpose, typical use cases, and sample implementations, enabling developers to customize bean initialization, configuration, and shutdown processes with concrete code examples.

Backend DevelopmentExtension PointsSpring Boot
0 likes · 19 min read
Mastering Spring & Spring Boot: All Extension Points Explained
Java High-Performance Architecture
Java High-Performance Architecture
Sep 8, 2022 · Backend Development

Mastering Java Read‑Write Splitting: Configure Master‑Slave DataSources with Spring

This article explains the concept of database read‑write splitting, discusses its limitations, and provides a step‑by‑step guide with Spring Boot code to configure master‑slave data sources, implement dynamic routing, context handling, custom annotations, and AOP for seamless switching.

DataSource RoutingJavaMaster‑Slave
0 likes · 11 min read
Mastering Java Read‑Write Splitting: Configure Master‑Slave DataSources with Spring
Code Ape Tech Column
Code Ape Tech Column
Sep 6, 2022 · Information Security

Customizing Spring Security FormLogin Authentication

This tutorial demonstrates how to set up a Spring Security FormLogin authentication flow, including creating a demo project, customizing the login page, configuring security rules, defining users and roles, and testing the login process with custom success and failure handlers.

AuthenticationJavaSpring Boot
0 likes · 11 min read
Customizing Spring Security FormLogin Authentication
Top Architect
Top Architect
Sep 5, 2022 · Backend Development

Comprehensive Guide to Using Quartz Scheduler in Java with Spring Boot

This article provides a detailed tutorial on Quartz, a powerful Java scheduling framework, covering its core concepts, basic usage with SimpleTrigger and CronTrigger, advanced features such as multiple triggers, bean injection, and persistence, and includes complete Spring Boot code examples.

JavaJobPersistence
0 likes · 22 min read
Comprehensive Guide to Using Quartz Scheduler in Java with Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 5, 2022 · Information Security

How to Implement Database‑Backed Authentication in Spring Security

This guide walks through configuring Spring Security with a custom AuthenticationProvider that authenticates users against a database, covering environment setup, core filter mechanics, custom UserDetails, UserDetailsService, PasswordEncoder implementations, and bean configuration with full code examples.

Custom AuthenticationProviderDatabase AuthenticationJava
0 likes · 12 min read
How to Implement Database‑Backed Authentication in Spring Security
Java High-Performance Architecture
Java High-Performance Architecture
Sep 4, 2022 · Databases

Unlock Sharding-JDBC: Guide to Sharding, Replication & Distributed Databases

This comprehensive tutorial walks through the evolution of Sharding-JDBC into ShardingSphere, explains core concepts like sharding, data nodes, and algorithms, demonstrates MySQL master‑slave setup with Docker, and provides step‑by‑step code examples for implementing read‑write separation, horizontal and vertical sharding, and distributed primary keys.

MySQL replicationSharding-JDBCSpring Boot
0 likes · 39 min read
Unlock Sharding-JDBC: Guide to Sharding, Replication & Distributed Databases
Cognitive Technology Team
Cognitive Technology Team
Sep 3, 2022 · Backend Development

Diagnosing NoSuchMethodError and NoSuchFieldError in Spring Boot Jar Packages

This article explains why a Spring Boot application that runs fine in an IDE may throw NoSuchMethodError or NoSuchFieldError when packaged as an executable jar, and provides systematic steps—including JVM class‑loading flags, Maven enforcer rules, and class‑path inspection—to locate and resolve the root cause.

Backend DevelopmentMavenNoSuchMethodError
0 likes · 6 min read
Diagnosing NoSuchMethodError and NoSuchFieldError in Spring Boot Jar Packages
Top Architect
Top Architect
Sep 3, 2022 · Backend Development

Implementing QR Code Login with WebSocket in Spring Boot

This article walks through building a QR‑code based login system using Spring Boot, detailing database design, role analysis, required APIs, step‑by‑step implementation, and full Java and JavaScript code for generating QR codes, handling WebSocket communication, and confirming user authentication.

APIJavaQR Code Login
0 likes · 12 min read
Implementing QR Code Login with WebSocket in Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Sep 2, 2022 · Backend Development

Understanding the @SpringBootApplication Annotation in Spring Boot

This article explains the core @SpringBootApplication annotation, its composition of @EnableAutoConfiguration, @ComponentScan, and @SpringBootConfiguration, shows its source code, demonstrates custom composite annotations, and details how Spring Boot performs component scanning and automatic bean configuration.

@SpringBootApplicationSpring Bootannotations
0 likes · 8 min read
Understanding the @SpringBootApplication Annotation in Spring Boot
dbaplus Community
dbaplus Community
Aug 31, 2022 · Operations

How to Achieve Zero‑Downtime Application Deployments with Service Routing and Load Balancers

This article explains why traditional application releases cause downtime, introduces maturity levels for nonstop deployment, compares release patterns, details essential technical components such as load balancers and service registries, and provides step‑by‑step graceful‑shutdown procedures using Spring Boot Actuator and Eureka.

Load BalancerSpring BootZero Downtime
0 likes · 19 min read
How to Achieve Zero‑Downtime Application Deployments with Service Routing and Load Balancers
macrozheng
macrozheng
Aug 31, 2022 · Backend Development

How to Install MinIO and Integrate It with Spring Boot for File Uploads

This guide introduces MinIO, an open‑source, S3‑compatible object storage written in Go, outlines its key features and deployment via Docker, and demonstrates step‑by‑step integration with Spring Boot to upload files through the MinIO SDK, including configuration, controller code, and testing.

DockerMinioObject Storage
0 likes · 8 min read
How to Install MinIO and Integrate It with Spring Boot for File Uploads
Java Architect Essentials
Java Architect Essentials
Aug 30, 2022 · Backend Development

Mastering Retry Logic in Java: Spring‑Retry vs Guava‑Retry

This article explains how to implement robust retry mechanisms in Java applications by comparing Spring‑Retry's declarative exception‑based approach with Guava‑Retry's flexible result‑oriented strategy, covering dependencies, configuration, policies, back‑off options, annotation usage, and practical code examples.

Backoff StrategyException HandlingGuava Retry
0 likes · 14 min read
Mastering Retry Logic in Java: Spring‑Retry vs Guava‑Retry
Architect's Guide
Architect's Guide
Aug 30, 2022 · Backend Development

Implementing Database Read‑Write Separation with Spring Boot

This article explains how to achieve database read‑write separation in high‑concurrency Java applications by configuring master‑slave data sources, implementing a routing datasource, managing context with ThreadLocal, and using custom annotations with AOP to switch between read and write databases at runtime.

AOPDataSource RoutingJava
0 likes · 10 min read
Implementing Database Read‑Write Separation with Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Aug 29, 2022 · Backend Development

Spring Boot Integration with RabbitMQ: Configuring Direct Exchange, Queues, Consumers, and Manual ACK/NACK Handling

This article demonstrates how to integrate Spring Boot with RabbitMQ using a direct exchange, configuring queues, producers, and two consumers, and explains manual acknowledgment mechanisms (ACK, NACK, Reject) to ensure reliable message processing and handling of consumer failures.

Consumer FailureDirect ExchangeSpring Boot
0 likes · 14 min read
Spring Boot Integration with RabbitMQ: Configuring Direct Exchange, Queues, Consumers, and Manual ACK/NACK Handling
Code Ape Tech Column
Code Ape Tech Column
Aug 29, 2022 · Backend Development

Seven Common Spring Boot Performance Optimization Techniques

This article presents seven practical Spring Boot performance optimization methods—including asynchronous execution, increasing embedded Tomcat connection limits, component scanning, switching to Undertow, using BufferedWriter, DeferredResult, and AsyncHandlerInterceptor—each illustrated with code samples and explanations for improving Java backend applications.

AsynchronousJavaPerformance Optimization
0 likes · 12 min read
Seven Common Spring Boot Performance Optimization Techniques
Selected Java Interview Questions
Selected Java Interview Questions
Aug 26, 2022 · Backend Development

Integrating Quartz Scheduler with Spring Boot for Custom Task Scheduling

This article provides a comprehensive guide on using the Quartz job‑scheduling library in Java, covering core concepts such as Job, Trigger, and Scheduler, showing Maven setup, sample job and trigger code, Spring Boot configuration, utility classes for creating and managing jobs, handling concurrency, misfire policies, and REST‑based job management.

Job SchedulingQuartzSpring Boot
0 likes · 20 min read
Integrating Quartz Scheduler with Spring Boot for Custom Task Scheduling
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 24, 2022 · Information Security

Mastering Custom Exception Handling in Spring Security (Spring Boot 2.4)

This guide explains how Spring Security processes authentication and authorization failures, walks through the default exception flow, and demonstrates multiple ways to customize error handling—including custom failure handlers, access‑denied pages, and JSON responses—using Spring Boot 2.4.12.

AuthenticationAuthorizationException Handling
0 likes · 12 min read
Mastering Custom Exception Handling in Spring Security (Spring Boot 2.4)
Top Architect
Top Architect
Aug 22, 2022 · Information Security

RBAC and Spring Security Tutorial: From Basic Role-Based Access Control to JWT Integration and JSON Login

This article provides a comprehensive guide on implementing role‑based access control (RBAC) with Spring Security, covering RBAC models, password encryption, in‑memory authentication, JWT integration, custom authentication filters for JSON login, and detailed configuration examples with full source code snippets.

AuthenticationJWTJava
0 likes · 16 min read
RBAC and Spring Security Tutorial: From Basic Role-Based Access Control to JWT Integration and JSON Login
Java High-Performance Architecture
Java High-Performance Architecture
Aug 21, 2022 · Backend Development

Master Spring Boot Logging: Configure Logback & SLF4J for Powerful Log Management

This guide explains why Logback is the preferred logging framework for Spring Boot, shows how to add the necessary dependencies, configure console and file appenders, customize log patterns, use rolling policies, apply filters, and optimize logging statements with placeholders, all illustrated with clean XML and Java code examples.

JavaLoggingSpring Boot
0 likes · 23 min read
Master Spring Boot Logging: Configure Logback & SLF4J for Powerful Log Management
Selected Java Interview Questions
Selected Java Interview Questions
Aug 20, 2022 · Backend Development

Using Nacos as a Configuration Center in Spring Boot Applications

This article explains why a configuration center is essential for microservices, introduces Nacos as a centralized solution, and provides step‑by‑step instructions with code examples for integrating Nacos into Spring Boot, managing Data IDs, namespaces, groups, and dynamic configuration refresh.

Configuration CenterDynamic RefreshNacos
0 likes · 14 min read
Using Nacos as a Configuration Center in Spring Boot Applications
Top Architect
Top Architect
Aug 20, 2022 · Backend Development

Using Logback and SLF4J for Logging in Spring Boot Applications

This article explains why Logback is the preferred logging framework for Spring Boot, shows how to add the necessary dependencies, configure logback‑spring.xml with appenders, encoders, filters and rolling policies, and provides best practices for efficient log statements in Java code.

JavaSpring Boot
0 likes · 21 min read
Using Logback and SLF4J for Logging in Spring Boot Applications
Alibaba Cloud Native
Alibaba Cloud Native
Aug 20, 2022 · Cloud Native

Deploy a Spring Boot App on Alibaba Cloud Function Compute in Minutes

This step‑by‑step guide shows how to enable Alibaba Cloud Function Compute, create a service and Java 17 function, configure a custom domain, export and edit the generated Spring Boot project, and adjust the listening port, enabling rapid serverless deployment for beginners.

Alibaba CloudFunction ComputeJava
0 likes · 7 min read
Deploy a Spring Boot App on Alibaba Cloud Function Compute in Minutes
Top Architect
Top Architect
Aug 19, 2022 · Backend Development

Introduction to Spring WebFlux: Reactive Web Development with Spring

This article introduces Spring WebFlux, explains the concept of reactive programming, compares it with Spring WebMVC, describes its concurrency model, and provides complete code examples for building a reactive Spring Boot application using Mono, Flux, functional routing, and WebClient.

Backend DevelopmentJavaSpring Boot
0 likes · 9 min read
Introduction to Spring WebFlux: Reactive Web Development with Spring
macrozheng
macrozheng
Aug 18, 2022 · Backend Development

Simplify MyBatis Join Queries with MyBatis-Plus-Join (MPJ) – A Hands‑On Guide

This tutorial demonstrates how to use the MyBatis-Plus-Join (MPJ) library to perform left and right join queries in Spring Boot without writing XML SQL, covering dependency setup, entity and mapper modifications, query construction with MPJLambdaWrapper and MPJQueryWrapper, pagination support, and practical tips.

Backend DevelopmentJavaJoin Query
0 likes · 10 min read
Simplify MyBatis Join Queries with MyBatis-Plus-Join (MPJ) – A Hands‑On Guide
Selected Java Interview Questions
Selected Java Interview Questions
Aug 15, 2022 · Backend Development

Guide to Setting Up MySQL Master‑Slave Replication with MyBatisPlus, ShardingSphereJDBC and Spring Boot for Read‑Write Splitting

This tutorial walks through the complete process of configuring MySQL master‑slave replication, preparing Docker containers, configuring MyBatisPlus and ShardingSphereJDBC for read‑write splitting, building a Spring Boot project with the necessary dependencies, generating code, and testing the setup with sample controller endpoints.

DockerShardingSphereSpring Boot
0 likes · 15 min read
Guide to Setting Up MySQL Master‑Slave Replication with MyBatisPlus, ShardingSphereJDBC and Spring Boot for Read‑Write Splitting
Java High-Performance Architecture
Java High-Performance Architecture
Aug 14, 2022 · Backend Development

Master Unified Responses, Validation, and Exception Handling in Spring Boot Controllers

This article explains how to structure Spring Boot controller requests, apply elegant parameter validation, wrap responses with a consistent ResultVo format, handle validation and business exceptions uniformly using @RestControllerAdvice, and selectively disable wrapping for specific endpoints, providing a complete backend development guide.

ControllerException HandlingJava
0 likes · 21 min read
Master Unified Responses, Validation, and Exception Handling in Spring Boot Controllers
Alibaba Cloud Native
Alibaba Cloud Native
Aug 13, 2022 · Cloud Computing

Deploy Spring Boot and Express on Alibaba Cloud Serverless in 60 Minutes

This guide walks beginners through the concepts, advantages, and practical steps of using Alibaba Cloud Function Compute to deploy popular web frameworks like Spring Boot and Express, create a custom Web IDE, and configure domains, while highlighting serverless architecture benefits and cost considerations.

Alibaba CloudExpressFunction Compute
0 likes · 20 min read
Deploy Spring Boot and Express on Alibaba Cloud Serverless in 60 Minutes
Cognitive Technology Team
Cognitive Technology Team
Aug 12, 2022 · Backend Development

Handling Large Integer IDs in Java and JavaScript: Preventing Precision Loss with Jackson Configuration

When generating large IDs using Snowflake-like algorithms, Java's 64‑bit long values exceed JavaScript's safe integer range, causing display errors; the article explains how to resolve this by serializing Long values as strings in Spring Boot using Jackson's ToStringSerializer, both via configuration and annotations.

ID SerializationJacksonJava
0 likes · 2 min read
Handling Large Integer IDs in Java and JavaScript: Preventing Precision Loss with Jackson Configuration
Java Backend Technology
Java Backend Technology
Aug 10, 2022 · Backend Development

Master MyBatis-Plus with Spring Boot: Complete Guide to CRUD, Pagination, and Multi‑DataSource

This tutorial walks through integrating MyBatis-Plus into a Spring Boot project, covering dependency setup, configuration, entity annotations, CRUD service and mapper usage, pagination, logical deletion, enum handling, automatic field filling, and multi‑data‑source management, complete with code examples and testing.

CRUDEnumMulti-DataSource
0 likes · 16 min read
Master MyBatis-Plus with Spring Boot: Complete Guide to CRUD, Pagination, and Multi‑DataSource
Java Architect Essentials
Java Architect Essentials
Aug 9, 2022 · Backend Development

Master MyBatis-Plus in Spring Boot: Quick Start, Configuration, and Advanced Features

This guide walks through integrating MyBatis-Plus with Spring Boot, covering environment setup, Maven dependencies, configuration of data sources, entity annotations, CRUD services, pagination, logical deletion, enum handling, automatic field filling, multi‑data‑source strategies, and testing with full code examples.

BackendDatabaseJava
0 likes · 20 min read
Master MyBatis-Plus in Spring Boot: Quick Start, Configuration, and Advanced Features
Selected Java Interview Questions
Selected Java Interview Questions
Aug 9, 2022 · Backend Development

Understanding and Implementing Idempotency in Backend APIs with Spring Boot and Redis

This article explains the concept of idempotency, why it is needed for HTTP interfaces, the impact on system design, and presents several practical backend solutions—including database unique keys, optimistic locking, anti‑repeat tokens, and downstream sequence numbers—accompanied by complete Spring Boot code examples using Redis for token management.

Backend DevelopmentREST APISpring Boot
0 likes · 20 min read
Understanding and Implementing Idempotency in Backend APIs with Spring Boot and Redis
Top Architect
Top Architect
Aug 9, 2022 · Backend Development

Building a Spring Boot Lottery System with Redis and MyBatis‑Plus

This article demonstrates how to create a simple lottery application using Spring Boot, MyBatis‑Plus, and Redis, covering project setup, database schema, dependency configuration, Redis integration, event‑driven data initialization, lottery draw logic, stock management, and asynchronous record handling.

JavaLotteryMyBatis-Plus
0 likes · 23 min read
Building a Spring Boot Lottery System with Redis and MyBatis‑Plus
Top Architect
Top Architect
Aug 9, 2022 · Backend Development

Implementing a JWT-Based Authentication Center with Spring Boot and Java

This article provides a comprehensive guide to building a JWT authentication service in Java, covering JWT fundamentals, Spring Boot configuration, entity and DAO definitions, service interfaces, token generation and parsing, RSA key handling, controller endpoints, testing procedures, and a comparison with traditional session-based authentication.

AuthenticationJWTJava
0 likes · 20 min read
Implementing a JWT-Based Authentication Center with Spring Boot and Java
Top Architect
Top Architect
Aug 5, 2022 · Backend Development

Comprehensive Guide to Using MyBatis-Plus with Spring Boot

This article provides a detailed tutorial on integrating MyBatis-Plus into a Spring Boot project, covering dependency setup, configuration, entity annotations, CRUD operations, pagination, logical deletion, enum handling, automatic field filling, and multi‑datasource support, with complete code examples.

CRUDEnumJava
0 likes · 17 min read
Comprehensive Guide to Using MyBatis-Plus with Spring Boot
Programmer DD
Programmer DD
Aug 2, 2022 · Backend Development

9 Proven Ways to Read Files from the resources Folder in Spring Boot

This guide details nine practical techniques for accessing files in a Java project's resources folder, covering classloader paths, URL decoding, getFile vs getPath, InputStream retrieval, ClassPathResource usage, absolute paths, and environment variable methods, with complete code examples for each approach.

Backend DevelopmentFile I/OJava
0 likes · 10 min read
9 Proven Ways to Read Files from the resources Folder in Spring Boot
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 1, 2022 · Backend Development

Mastering Spring Boot Static Resources and Content Negotiation

This article explains how Spring Boot serves static resources from default locations, how to customize static path patterns and resource locations, handle Webjars, configure content negotiation with parameters and custom media types, and integrate template engines such as Thymeleaf, FreeMarker, and Mustache.

Content negotiationSpring BootStatic Resources
0 likes · 8 min read
Mastering Spring Boot Static Resources and Content Negotiation
Java Backend Technology
Java Backend Technology
Jul 31, 2022 · Backend Development

Mastering Single Sign-On (SSO) with CAS: From Session Basics to Full Demo

This article explains why unified authentication is essential for product suites, reviews traditional session mechanisms and their limitations in clustered environments, explores session‑sharing strategies, introduces CAS‑based SSO workflows, compares CAS with OAuth2, and provides a complete Spring Boot demo with code snippets and configuration details.

AuthenticationCASRedis
0 likes · 17 min read
Mastering Single Sign-On (SSO) with CAS: From Session Basics to Full Demo
Java High-Performance Architecture
Java High-Performance Architecture
Jul 29, 2022 · Backend Development

Master MyBatis-Plus in Spring Boot: Setup, Config, and Advanced Usage

A comprehensive guide walks you through integrating MyBatis-Plus with Spring Boot, detailing dependency setup, configuration, entity annotations, CRUD operations, pagination, logical deletion, enum mapping, automatic field filling, multi‑datasource handling, and testing, all illustrated with runnable code examples.

CRUDJavaMulti-DataSource
0 likes · 19 min read
Master MyBatis-Plus in Spring Boot: Setup, Config, and Advanced Usage
Top Architect
Top Architect
Jul 29, 2022 · Backend Development

Implementing API Idempotency in Spring Boot Using Tokens, Database Primary Keys, Optimistic Locks, and Redis

This article explains the concept of idempotency in computing and HTTP, why it is essential for APIs, the impact on system design, which RESTful methods are idempotent, and presents four practical implementation strategies—including database primary keys, optimistic locking, anti‑repeat tokens, and downstream sequence numbers—accompanied by complete Spring Boot code examples and testing procedures.

APIDatabaseIdempotency
0 likes · 22 min read
Implementing API Idempotency in Spring Boot Using Tokens, Database Primary Keys, Optimistic Locks, and Redis
Architecture Digest
Architecture Digest
Jul 29, 2022 · Databases

Guide to Setting Up MySQL Master‑Slave Replication with MyBatis‑Plus, ShardingSphereJDBC and Spring Boot for Read‑Write Splitting

This tutorial explains how to configure MySQL master‑slave replication using Docker, set up read‑write splitting with ShardingSphereJDBC, integrate MyBatis‑Plus, and build a Spring Boot application that demonstrates write operations on the master and read operations on the slave.

MyBatis-PlusMySQLShardingSphere
0 likes · 16 min read
Guide to Setting Up MySQL Master‑Slave Replication with MyBatis‑Plus, ShardingSphereJDBC and Spring Boot for Read‑Write Splitting
Architect
Architect
Jul 28, 2022 · Information Security

Implementing Data Masking in MySQL and Java Using MyBatis‑Mate Sensitive Jackson

This article demonstrates how to mask sensitive data such as phone numbers, ID cards, and emails in MySQL and Java applications by combining SQL string functions with the MyBatis‑Mate Sensitive Jackson plugin, providing complete configuration, custom strategies, and runnable Spring Boot examples.

JavaMyBatisSpring Boot
0 likes · 9 min read
Implementing Data Masking in MySQL and Java Using MyBatis‑Mate Sensitive Jackson
Su San Talks Tech
Su San Talks Tech
Jul 28, 2022 · Backend Development

Asynchronous Java Programming: Threads, Futures, CompletableFuture & Spring @Async

This article introduces asynchronous programming concepts in Java, explaining how multithreading, Future, FutureTask, CompletableFuture, and Spring's @Async annotation can transform synchronous workflows into high‑throughput, low‑latency solutions, with code examples and practical guidance for implementing each technique.

CompletableFutureConcurrencyJava
0 likes · 17 min read
Asynchronous Java Programming: Threads, Futures, CompletableFuture & Spring @Async
Java Architecture Diary
Java Architecture Diary
Jul 26, 2022 · Backend Development

How to Integrate and Use mica-mqtt Java Client in Spring Boot

This guide introduces the open‑source mica‑mqtt library built on t‑io, explains how to add the Spring Boot starter dependency, configure client options, implement connection listeners, customize settings, perform subscriptions and publishing, and also covers shared subscription modes, jfinal integration, and usage in plain Java projects.

JavaSpring Bootmica-mqtt
0 likes · 10 min read
How to Integrate and Use mica-mqtt Java Client in Spring Boot
Top Architect
Top Architect
Jul 25, 2022 · Backend Development

Using @Scheduled in Spring Boot for Task Scheduling: Configuration, Parameters, and Multi‑threading

This article explains how to create and configure Spring Boot scheduled tasks with @Scheduled, covering property‑based settings, cron expressions, fixed‑rate and fixed‑delay options, the required @EnableScheduling annotation, and how to switch from the default single‑thread executor to a multi‑threaded pool for concurrent execution.

ConcurrencyJavaScheduled Tasks
0 likes · 9 min read
Using @Scheduled in Spring Boot for Task Scheduling: Configuration, Parameters, and Multi‑threading
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 25, 2022 · Backend Development

Mastering Spring MVC Auto-Configuration in Spring Boot 2.4.12

This guide explains how Spring Boot 2.4.12 automatically configures Spring MVC components such as view resolvers, converters, and message handlers, and shows how to customize them via WebMvcConfigurer, WebMvcRegistrations, HttpMessageConverters, and @JsonComponent, including code examples for full control over the Web MVC setup.

HttpMessageConvertersSpring BootWebMvcConfigurer
0 likes · 8 min read
Mastering Spring MVC Auto-Configuration in Spring Boot 2.4.12
Selected Java Interview Questions
Selected Java Interview Questions
Jul 24, 2022 · Backend Development

Spring Boot Multi‑Environment Configuration and JVM Parameter Tuning Guide

This article demonstrates how to configure Spring Boot for multiple environments, retrieve custom parameters, package and run the application, modify startup settings via system variables or command‑line arguments, and explains the priority and detailed JVM options for optimizing a Spring Boot service.

JVMMulti-EnvironmentSpring Boot
0 likes · 10 min read
Spring Boot Multi‑Environment Configuration and JVM Parameter Tuning Guide
Selected Java Interview Questions
Selected Java Interview Questions
Jul 22, 2022 · Backend Development

WeChat Open Platform QR Code Login Integration with Spring Boot

This article explains how to implement WeChat QR code login using OAuth2.0 in a Spring Boot backend, detailing the authorization flow, required configuration, code examples for obtaining access tokens, user authentication, Spring AOP login verification, and exception handling to securely integrate WeChat login into a Java application.

OAuth2QR loginSpring Boot
0 likes · 11 min read
WeChat Open Platform QR Code Login Integration with Spring Boot
Java Backend Technology
Java Backend Technology
Jul 22, 2022 · Backend Development

Why Unified API Responses Matter: Mastering Spring Boot Controllers and AOP

This article explains common pitfalls in Java API design—such as inconsistent return formats, missing error handling, and inappropriate parameters—and demonstrates how a unified ResultBean, strict controller conventions, and AOP logging can dramatically improve code readability, maintainability, and error management in Spring Boot projects.

AOPJavaResultBean
0 likes · 10 min read
Why Unified API Responses Matter: Mastering Spring Boot Controllers and AOP
Java Architect Essentials
Java Architect Essentials
Jul 20, 2022 · Information Security

Spring Security Based System Permission Management Tutorial

This article provides a comprehensive step‑by‑step guide on building a permission management system with Spring Security, covering database design, entity classes, Maven configuration, security configuration, dynamic menu loading, front‑end rendering using Thymeleaf, and complete testing with sample code and screenshots.

AuthenticationAuthorizationPermission management
0 likes · 19 min read
Spring Security Based System Permission Management Tutorial
Sohu Tech Products
Sohu Tech Products
Jul 20, 2022 · Backend Development

Diagnosing Thread Blocking in a Spring Boot Service Caused by Logback Configuration Errors

This article details a step‑by‑step investigation of a Java Spring‑Boot service that suffered nightly response‑time alerts, revealing that misconfigured Logback file paths caused cross‑volume log rotation, thread blocking, and ultimately a production outage, and shows how gray‑deployment and environment fixes resolved the issue.

JavaPerformance debuggingSpring Boot
0 likes · 13 min read
Diagnosing Thread Blocking in a Spring Boot Service Caused by Logback Configuration Errors
Architect's Guide
Architect's Guide
Jul 19, 2022 · Backend Development

Design and Implementation of a Custom Java RPC Framework

This article presents a comprehensive overview of a hand‑crafted RPC framework built with Spring Boot, Netty, and Zookeeper, covering its core concepts, architecture, custom message protocol, load‑balancing strategies, serialization choices, starter design, deployment steps, and testing procedures.

Distributed SystemsJavaNetty
0 likes · 15 min read
Design and Implementation of a Custom Java RPC Framework
Programmer DD
Programmer DD
Jul 18, 2022 · Backend Development

Mastering Caffeine Cache: Algorithms, Configurations, and Spring Boot Integration

This article explains the advantages of Caffeine Cache's W‑TinyLFU algorithm over traditional FIFO, LRU, and LFU policies, details its eviction and reference‑type strategies, and provides step‑by‑step guidance for integrating Caffeine into Spring Boot applications with code examples and configuration tips.

Cache EvictionCaffeine cacheJava
0 likes · 27 min read
Mastering Caffeine Cache: Algorithms, Configurations, and Spring Boot Integration
Selected Java Interview Questions
Selected Java Interview Questions
Jul 17, 2022 · Backend Development

Unified Global Response and Exception Handling in Spring Boot

This article explains how to implement a unified response format and centralized exception handling in Spring Boot applications using @RestControllerAdvice, @ControllerAdvice, ResponseBodyAdvice, and custom response entities, providing code examples and best‑practice guidelines for robust backend APIs.

Exception HandlingGlobal ResponseResponseBodyAdvice
0 likes · 13 min read
Unified Global Response and Exception Handling in Spring Boot
Architecture Digest
Architecture Digest
Jul 17, 2022 · Information Security

Step-by-Step Guide to Setting Up CAS Single Sign-On (SSO) with Java Backend

This tutorial explains what SSO and CAS are, outlines the required development environment, walks through downloading, building, and deploying the CAS Server, shows how to configure the server and client (including disabling HTTPS for testing), and demonstrates successful cross‑application authentication with code examples.

AuthenticationCASJava
0 likes · 7 min read
Step-by-Step Guide to Setting Up CAS Single Sign-On (SSO) with Java Backend
Top Architect
Top Architect
Jul 13, 2022 · Backend Development

Configurable Data Masking in Spring Boot Using Custom Annotations and Jackson

This article demonstrates how to implement a flexible data‑masking solution for sensitive fields in Spring Boot APIs by defining a custom annotation, creating a serializer, integrating it with Jackson via an AnnotationIntrospector, configuring the ObjectMapper, and applying the annotation to domain objects.

Backend DevelopmentCustom AnnotationJackson
0 likes · 7 min read
Configurable Data Masking in Spring Boot Using Custom Annotations and Jackson
Top Architect
Top Architect
Jul 11, 2022 · Information Security

Implementing CAS Single Sign‑On with a Custom Authentication Filter in Spring Boot

This article explains how to integrate the CAS (Central Authentication Service) single sign‑on solution into a Spring Boot backend by adding necessary dependencies, configuring a series of CAS filters, creating a custom MyAuthenticationFilter to handle AJAX requests, and demonstrating a Vue.js frontend that interacts with the authentication flow, complete with screenshots of the login, ticket validation, and logout processes.

AuthenticationCASSingle Sign-On
0 likes · 14 min read
Implementing CAS Single Sign‑On with a Custom Authentication Filter in Spring Boot
Top Architect
Top Architect
Jul 10, 2022 · Backend Development

Understanding Spring Boot Caching with JCache, Annotations, and Redis Integration

This article explains Spring Boot's caching mechanism based on the JSR‑107 JCache specification, details core interfaces and implementations like Cache, AbstractValueAdaptingCache, and ConcurrentMapCache, demonstrates cache annotations such as @Cacheable, @CachePut and @CacheEvict, and shows how to replace the default in‑memory cache with Redis using Docker, StringRedisTemplate, and custom serialization.

CacheJCacheJava
0 likes · 16 min read
Understanding Spring Boot Caching with JCache, Annotations, and Redis Integration
Programmer DD
Programmer DD
Jul 6, 2022 · Backend Development

Why Does Spring Create Two UserManager Beans? Uncovering @Configuration vs @Component Behavior

This article explains why a Spring Boot application can end up with two UserManager beans—one from @Configuration + @Bean and another from @Component—by analyzing bean definition overriding, the role of ConfigurationClassPostProcessor, and the impact of the allowBeanDefinitionOverriding setting across Spring versions.

Backend DevelopmentBean OverridingComponent
0 likes · 9 min read
Why Does Spring Create Two UserManager Beans? Uncovering @Configuration vs @Component Behavior
Top Architect
Top Architect
Jul 5, 2022 · Backend Development

Advanced Asynchronous Execution and Performance Tuning in Spring Boot

This article explains multiple Spring Boot asynchronous execution techniques—such as @Async, CompletableFuture, WebAsyncTask, DeferredResult, and AsyncHandlerInterceptor—provides complete Java code examples, and discusses performance optimizations like increasing Tomcat connection limits, switching to Undertow, using ComponentScan, and buffered I/O.

AsynchronousJavaSpring Boot
0 likes · 9 min read
Advanced Asynchronous Execution and Performance Tuning in Spring Boot
Java Captain
Java Captain
Jul 5, 2022 · Frontend Development

Music Website Project – Full‑Stack Implementation with Vue 3 and Spring Boot

This article introduces a music website built with Vue 3 on the client side and Spring Boot + MyBatis on the server side, detailing its features, technology stack, development environment, and step‑by‑step instructions for downloading, configuring, and running the full‑stack application.

Full-StackMySQLSpring Boot
0 likes · 7 min read
Music Website Project – Full‑Stack Implementation with Vue 3 and Spring Boot
Java High-Performance Architecture
Java High-Performance Architecture
Jul 5, 2022 · Backend Development

How Spring Boot Auto‑Configures Embedded Tomcat: A Deep Dive

This article explains Spring Boot’s auto‑configuration mechanism, focusing on how the spring‑boot‑autoconfigure module automatically sets up the embedded Tomcat server, detailing the relevant Maven dependencies, configuration classes, conditional annotations, and the lifecycle steps that create and start the Tomcat container.

Embedded TomcatJavaMaven
0 likes · 15 min read
How Spring Boot Auto‑Configures Embedded Tomcat: A Deep Dive
Java High-Performance Architecture
Java High-Performance Architecture
Jul 3, 2022 · Backend Development

Securing Spring Boot APIs with Request/Response Encryption via ControllerAdvice

This article walks through implementing symmetric request and response encryption for Spring Boot APIs—covering requirements, data models, controller examples, debugging serialization issues, and using ControllerAdvice with Jackson to ensure encrypted payloads remain compatible across Android, iOS, and H5 clients.

AESControllerAdviceJackson
0 likes · 13 min read
Securing Spring Boot APIs with Request/Response Encryption via ControllerAdvice
Architect
Architect
Jul 2, 2022 · Backend Development

Asynchronous Execution Techniques in Spring Boot with CompletableFuture

The article explains multiple methods for implementing asynchronous execution in Spring Boot, covering @Async annotation, Java 8 CompletableFuture, Callable, WebAsyncTask, DeferredResult, Tomcat connection tuning, container switching to Undertow, and async interception, all illustrated with complete code examples.

AsynchronousBackendCompletableFuture
0 likes · 11 min read
Asynchronous Execution Techniques in Spring Boot with CompletableFuture