Tagged articles
3874 articles
Page 24 of 39
Top Architect
Top Architect
Dec 7, 2022 · Backend Development

Graceful Shutdown of Spring Boot Applications: Avoiding the Pitfalls of kill -9

This article explains how the Linux kill -9 command can cause data inconsistency and service disruption, demonstrates why it should be avoided in production, and provides several graceful shutdown techniques for Spring Boot—including using kill -15, the built‑in shutdown hook, Actuator endpoints, and a custom Tomcat connector configuration—along with code examples and best‑practice recommendations.

Graceful ShutdownJavaLinux kill
0 likes · 19 min read
Graceful Shutdown of Spring Boot Applications: Avoiding the Pitfalls of kill -9
Java Architecture Diary
Java Architecture Diary
Dec 7, 2022 · Backend Development

Boost Spring Boot Development with mica-auto: Auto-Generate Config Files

The mica-auto Spring Boot starter tool leverages Java Annotation Processors to automatically generate essential configuration files such as spring.factories, AutoConfiguration.imports, aot.factories, and spring‑devtools.properties, supporting Spring Boot 2.7+ and 3.0, and simplifying native image builds with GraalVM.

Annotation ProcessorJavaSpring Boot
0 likes · 3 min read
Boost Spring Boot Development with mica-auto: Auto-Generate Config Files
Architecture Digest
Architecture Digest
Dec 7, 2022 · Backend Development

Graceful Shutdown of Spring Boot Services and the Risks of Using kill -9

The article explains how the Linux kill command, especially kill -9, can abruptly terminate processes causing data inconsistency, and demonstrates safer alternatives for stopping Spring Boot applications—including kill -15, the built‑in shutdown script, Actuator endpoints, custom Tomcat connector shutdown, and @PreDestroy backup hooks—providing complete code examples.

Graceful ShutdownJavaLinux signals
0 likes · 19 min read
Graceful Shutdown of Spring Boot Services and the Risks of Using kill -9
Code Ape Tech Column
Code Ape Tech Column
Dec 7, 2022 · Backend Development

Simplified Join Queries with MyBatis-Plus-Join (MPJ) in Spring Boot

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

JavaJoin QueryMPJ
0 likes · 9 min read
Simplified Join Queries with MyBatis-Plus-Join (MPJ) in Spring Boot
macrozheng
macrozheng
Dec 6, 2022 · Backend Development

Master Spring Boot 3 Http Interface: Declarative Remote Calls Made Easy

This article explains how Spring Boot 3's Http Interface feature enables declarative HTTP service calls by defining Java interfaces, covering dependency setup, interface definitions, token handling, WebClient configuration, controller integration, testing with Postman, and discusses its reliance on WebFlux.

Declarative HTTPHTTP InterfaceJava
0 likes · 10 min read
Master Spring Boot 3 Http Interface: Declarative Remote Calls Made Easy
Top Architect
Top Architect
Dec 5, 2022 · Backend Development

Integrating Spring Batch with Spring Boot: Full Tutorial and Example

This article provides a comprehensive step‑by‑step guide on integrating Spring Batch with Spring Boot, covering configuration, entity and mapper definitions, job, step, reader, processor, writer implementations, database setup, error handling, and execution via a REST controller, complete with code examples.

Batch processingJavaMyBatis
0 likes · 22 min read
Integrating Spring Batch with Spring Boot: Full Tutorial and Example
Top Architect
Top Architect
Dec 5, 2022 · Backend Development

Spring Boot Starter for Automatic Request and Response Encryption/Decryption

This article demonstrates how to create a custom Spring Boot starter that provides automatic request body decryption and response body encryption using Hutool‑crypto, HttpServletRequestWrapper, RequestBodyAdvice, ResponseBodyAdvice, and validation utilities, enabling secure data transmission with timestamp verification.

JavaRequestBodyAdviceResponseBodyAdvice
0 likes · 25 min read
Spring Boot Starter for Automatic Request and Response Encryption/Decryption
Top Architect
Top Architect
Dec 4, 2022 · Backend Development

Asynchronous Execution in Spring Boot: @Async, CompletableFuture, WebAsyncTask, DeferredResult and Related Optimizations

This article explains multiple ways to perform asynchronous processing in Spring Boot, including @Async annotation, CompletableFuture (supplyAsync, runAsync), WebAsyncTask, DeferredResult, custom AsyncHandlerInterceptor, and server‑side optimizations such as increasing Tomcat connections and switching to Undertow, with complete code examples.

AsynchronousCompletableFutureJava
0 likes · 10 min read
Asynchronous Execution in Spring Boot: @Async, CompletableFuture, WebAsyncTask, DeferredResult and Related Optimizations
Top Architect
Top Architect
Dec 2, 2022 · Backend Development

Unified Exception Handling in Spring Boot with Custom Assertions and Enum‑Based Error Codes

This article explains how to implement a comprehensive unified exception handling mechanism in Spring Boot by using @ControllerAdvice, custom BaseException/BusinessException classes, enum‑based error codes, assertion utilities, and standardized response objects to simplify error management across controller and service layers.

EnumsException HandlingJava
0 likes · 22 min read
Unified Exception Handling in Spring Boot with Custom Assertions and Enum‑Based Error Codes
Selected Java Interview Questions
Selected Java Interview Questions
Dec 1, 2022 · Backend Development

Five Common Batch Insert Techniques for MyBatis and MyBatis‑Plus

This article presents and compares five practical batch‑insert methods for MyBatis and MyBatis‑Plus, covering preparation steps, code implementations, configuration details, and performance results, helping developers choose the most efficient approach for inserting large volumes of data in Java backend projects.

Batch InsertJavaMyBatis
0 likes · 9 min read
Five Common Batch Insert Techniques for MyBatis and MyBatis‑Plus
Top Architect
Top Architect
Nov 30, 2022 · Backend Development

Integrating Groovy Scripts with Spring Boot: A Step‑by‑Step Guide

This article introduces Groovy as a JVM scripting language, outlines its typical use cases, and provides a detailed, code‑rich tutorial on how to integrate Groovy scripts into a Spring Boot application, including dependency setup, script execution, bean access, and security considerations.

Backend IntegrationGroovyJava
0 likes · 11 min read
Integrating Groovy Scripts with Spring Boot: A Step‑by‑Step Guide
macrozheng
macrozheng
Nov 30, 2022 · Backend Development

Mastering Spring Boot Validation with Hibernate Validator: An End‑to‑End Guide

This article explains why back‑end parameter validation is essential, introduces the JSR‑303 Bean Validation specification and Hibernate Validator, demonstrates common constraint annotations, shows how to integrate validation in Spring Boot, create custom annotations, and resolve typical pitfalls.

Custom AnnotationHibernate ValidatorJSR-303
0 likes · 14 min read
Mastering Spring Boot Validation with Hibernate Validator: An End‑to‑End Guide
Top Architect
Top Architect
Nov 29, 2022 · Databases

Elasticsearch Integration with Spring Boot: Dependency Setup, High‑Level Client, CRUD Operations, Bulk Processing and Search

This article provides a step‑by‑step guide on integrating Elasticsearch into a Spring Boot project, covering Maven dependency configuration, creation of a RestHighLevelClient, basic index and document CRUD operations, bulk data handling, advanced search queries with highlighting, and key implementation notes.

CRUDHigh-Level ClientJava
0 likes · 11 min read
Elasticsearch Integration with Spring Boot: Dependency Setup, High‑Level Client, CRUD Operations, Bulk Processing and Search
Programmer DD
Programmer DD
Nov 29, 2022 · Backend Development

How to Upgrade Spring Cloud Tencent to 2022: A Step‑by‑Step Guide

This article walks developers through upgrading Spring Cloud Tencent to the 2022 release, covering JDK 17 installation, Maven dependency updates, handling package conflicts, migrating javax to jakarta imports, adapting auto‑configuration files, and provides practical tips for a smooth transition to Java 17, Spring 6, and Spring Boot 3.

Spring BootUpgradejava-17
0 likes · 14 min read
How to Upgrade Spring Cloud Tencent to 2022: A Step‑by‑Step Guide
Code Ape Tech Column
Code Ape Tech Column
Nov 29, 2022 · Backend Development

Simplified HTTP Requests with OKHttpUtil in Java and Spring Boot

This article introduces OKHttpUtil, a lightweight wrapper for OkHttp that simplifies HTTP GET, POST, file upload/download, and chainable requests in Java, provides Maven integration, Spring Boot configuration, and demonstrates how to encapsulate external APIs such as eBay with concise code examples.

API wrapperHTTP clientJava
0 likes · 10 min read
Simplified HTTP Requests with OKHttpUtil in Java and Spring Boot
Java Architect Essentials
Java Architect Essentials
Nov 27, 2022 · Backend Development

Encrypting Spring Boot Configuration with Jasypt – A Complete Guide

This article explains how to securely encrypt sensitive Spring Boot configuration properties such as database passwords using the Jasypt library, covering dependency setup, YAML configuration, encryption/decryption testing, custom encryptors, property detectors, resolvers, filters, and Maven plugin usage, all with practical code examples.

JasyptMavenSpring Boot
0 likes · 22 min read
Encrypting Spring Boot Configuration with Jasypt – A Complete Guide
Programmer DD
Programmer DD
Nov 27, 2022 · Backend Development

Essential Guide to Upgrading Your Spring Boot Apps to 3.0

This article provides a comprehensive step‑by‑step migration guide for upgrading Spring Boot applications to version 3.0, covering JDK updates, dependency assessment, configuration changes, Jakarta EE package renaming, key feature alterations, and practical code snippets.

BackendSpring Bootgraalvm
0 likes · 9 min read
Essential Guide to Upgrading Your Spring Boot Apps to 3.0
Programmer DD
Programmer DD
Nov 25, 2022 · Backend Development

How to Reduce API Payload Size with GZIP Compression in Spring Boot

Learn how to compress large JSON payloads in a Spring Boot advertising API using GZIP, implement a servlet filter and request wrapper to decompress on the server, and evaluate bandwidth, CPU trade‑offs, testing methods, and deployment steps to halve request size.

HTTP CompressionJavaServlet Filter
0 likes · 14 min read
How to Reduce API Payload Size with GZIP Compression in Spring Boot
Top Architect
Top Architect
Nov 22, 2022 · Backend Development

Handling Cross‑Origin Requests with Spring Cloud Gateway, @CrossOrigin Annotation, and HttpClient

The article explains why browsers enforce same‑origin policies, then presents three practical ways to solve cross‑origin issues in a Spring Boot backend—using the @CrossOrigin annotation, routing through Spring Cloud Gateway, and making server‑side requests with HttpClient—accompanied by configuration examples and full code snippets.

CORSHttpClientJava
0 likes · 12 min read
Handling Cross‑Origin Requests with Spring Cloud Gateway, @CrossOrigin Annotation, and HttpClient
Java High-Performance Architecture
Java High-Performance Architecture
Nov 21, 2022 · Backend Development

Mastering Spring Data Elasticsearch: Clients, Operations, and Query Techniques

This article explains ElasticSearch’s role in modern applications, compares its clients, shows how to configure RestHighLevelClient in Spring Boot, and details the four Spring Data Elasticsearch Operations interfaces with code examples for building queries using CriteriaQuery, StringQuery, and NativeSearchQuery.

JavaSearchSpring Boot
0 likes · 13 min read
Mastering Spring Data Elasticsearch: Clients, Operations, and Query Techniques
Top Architect
Top Architect
Nov 20, 2022 · Backend Development

Comprehensive Guide to Spring Validation: Parameter Checks, Groups, Nested Objects, Collections, Custom Constraints, and Implementation Details

This article provides a thorough tutorial on using Spring Validation for request parameter checking, covering simple usage, dependency setup, requestBody and requestParam validation, group and nested validation, collection handling, custom constraints, programmatic validation, fail‑fast mode, and the underlying implementation in Spring MVC and Hibernate Validator.

Hibernate ValidatorJavaParameter Validation
0 likes · 17 min read
Comprehensive Guide to Spring Validation: Parameter Checks, Groups, Nested Objects, Collections, Custom Constraints, and Implementation Details
Top Architect
Top Architect
Nov 19, 2022 · Backend Development

Implementing Distributed Transactions with RocketMQ and SEATA in a Microservice Architecture

This article explains the concept of distributed transactions, presents typical microservice scenarios that generate them, and demonstrates a complete implementation using RocketMQ transactional messages and SEATA, including database schema, producer and consumer code, transaction listeners, and idempotent consumption handling.

JavaSpring Bootdistributed transactions
0 likes · 14 min read
Implementing Distributed Transactions with RocketMQ and SEATA in a Microservice Architecture
Top Architect
Top Architect
Nov 19, 2022 · Backend Development

Design and Implementation of an Open API Token Authentication System with Spring Boot

This article explains how to design an open API authentication mechanism by creating app credentials, storing them in a MySQL table, generating short‑lived access tokens with a utility class, exposing a token endpoint, and securing all /openApi/* routes with a Spring interceptor, complete with code examples.

JavaSpring Bootapi-design
0 likes · 9 min read
Design and Implementation of an Open API Token Authentication System with Spring Boot
Architect
Architect
Nov 18, 2022 · Backend Development

Handling Cross‑Origin Issues with @CrossOrigin, Spring Cloud Gateway, and HttpClient

This article explains why browsers enforce same‑origin policies, presents common CORS solutions such as the @CrossOrigin annotation, gateway integration with Spring Cloud Gateway, and using HttpClient, and provides detailed configuration and code examples for implementing these approaches in a Java backend project.

BackendCORSHttpClient
0 likes · 11 min read
Handling Cross‑Origin Issues with @CrossOrigin, Spring Cloud Gateway, and HttpClient
Top Architect
Top Architect
Nov 18, 2022 · Information Security

Step-by-Step Guide to Building CAS Single Sign-On (SSO) with Spring Boot

This article provides a comprehensive tutorial on implementing Single Sign-On using the Central Authentication Service (CAS), covering its concepts, features, architecture, environment setup, server and client configuration, and testing procedures with detailed code examples for Java developers.

CASJavaSSO
0 likes · 9 min read
Step-by-Step Guide to Building CAS Single Sign-On (SSO) with Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Nov 17, 2022 · Backend Development

Spring Boot Login Authentication: Filters, Interceptors, AOP, ThreadLocal, and Parameter Resolver

This article presents a comprehensive Spring Boot tutorial on implementing non‑intrusive login authentication using three techniques—Filter, Interceptor, and AOP with custom annotations—plus extensions such as ThreadLocal storage and a Spring MVC argument resolver, complete with project setup, Maven dependencies, and test screenshots.

AOPInterceptorParameter Resolver
0 likes · 13 min read
Spring Boot Login Authentication: Filters, Interceptors, AOP, ThreadLocal, and Parameter Resolver
Selected Java Interview Questions
Selected Java Interview Questions
Nov 16, 2022 · Backend Development

MinIO Overview, Installation, and Spring Boot Integration Guide

This article introduces MinIO as a high‑performance, cloud‑native object storage solution, explains its key features and use cases, provides step‑by‑step Docker installation commands, and demonstrates how to integrate MinIO with Spring Boot through Maven dependencies, configuration, utility classes, service, and controller code.

DockerJavaMinio
0 likes · 19 min read
MinIO Overview, Installation, and Spring Boot Integration Guide
Code Ape Tech Column
Code Ape Tech Column
Nov 15, 2022 · Information Security

Understanding Single Sign-On (SSO) with OAuth2.0 and Its Spring Boot Implementation

This article explains the principles and workflow of Single Sign‑On using OAuth2.0, illustrates the process with a real‑life analogy, and provides a complete Spring Boot example—including authorization server, client configuration, and role‑based access control—suitable for microservice architectures.

AuthenticationAuthorizationOAuth2
0 likes · 12 min read
Understanding Single Sign-On (SSO) with OAuth2.0 and Its Spring Boot Implementation
Programmer DD
Programmer DD
Nov 14, 2022 · Backend Development

Master Spring Boot Logging: From SLF4J Basics to Advanced Configuration

This tutorial explains how Spring Boot handles logging with Commons Logging, demonstrates using SLF4J as a facade, shows a complete code example, and covers configuring log output, levels, color, file rotation, and custom patterns for effective backend logging.

LoggingSpring Bootconfiguration
0 likes · 11 min read
Master Spring Boot Logging: From SLF4J Basics to Advanced Configuration
Java Architect Essentials
Java Architect Essentials
Nov 14, 2022 · Backend Development

How Spring Boot Auto‑Configuration Works: A Deep Dive into @EnableAutoConfiguration

This article explains the inner workings of Spring Boot's auto‑configuration mechanism, covering the role of @SpringBootApplication, @EnableAutoConfiguration, spring.factories scanning, conditional annotations, and how configuration properties are bound to beans, with code examples and diagrams for clear understanding.

Backend DevelopmentJavaSpring Boot
0 likes · 9 min read
How Spring Boot Auto‑Configuration Works: A Deep Dive into @EnableAutoConfiguration
Selected Java Interview Questions
Selected Java Interview Questions
Nov 13, 2022 · Backend Development

Integrating Elasticsearch with Spring Boot for Book Search: A Step‑by‑Step Guide

This article explains why MySQL LIKE queries are inefficient for search, introduces Elasticsearch as a high‑performance alternative, and provides a complete Spring Boot integration tutorial—including version compatibility, Maven dependencies, Java configuration, entity mapping, repository interfaces, service and controller code, and testing steps—to implement CRUD‑style full‑text search for a book catalog.

Backend DevelopmentCRUDElasticsearch
0 likes · 11 min read
Integrating Elasticsearch with Spring Boot for Book Search: A Step‑by‑Step Guide
Selected Java Interview Questions
Selected Java Interview Questions
Nov 7, 2022 · Backend Development

Comprehensive Guide to Spring Validation: RequestBody, RequestParam, and Advanced Techniques

This article provides a detailed tutorial on using Spring Validation in Spring Boot applications, covering simple and advanced usage such as requestBody and requestParam parameter checks, group validation, nested and collection validation, custom constraints, programmatic validation, fail‑fast mode, and the underlying implementation mechanisms.

Hibernate ValidatorJavaSpring Boot
0 likes · 16 min read
Comprehensive Guide to Spring Validation: RequestBody, RequestParam, and Advanced Techniques
Java Architect Essentials
Java Architect Essentials
Nov 6, 2022 · Backend Development

Implementing a Distributed Redis Lock with AOP and Automatic Renewal in Java

This article explains how to design and implement a distributed lock using Redis, Spring AOP annotations, and a scheduled executor to automatically extend lock expiration, providing complete Java code examples, configuration details, testing procedures, and best‑practice recommendations for handling long‑running business operations safely.

AOPConcurrencyRedis
0 likes · 12 min read
Implementing a Distributed Redis Lock with AOP and Automatic Renewal in Java
macrozheng
macrozheng
Nov 5, 2022 · Operations

Unlock Full Observability in Spring Boot 3 with Micrometer Observation API

This article explains how Spring Boot 3.0.0‑RC1 integrates Micrometer Observation API to provide unified metrics, logging, and distributed tracing, showing the observation lifecycle, configuration steps, sample server and client code, Docker‑compose setup, and notes on native image support for comprehensive application observability.

JavaMetricsMicrometer
0 likes · 26 min read
Unlock Full Observability in Spring Boot 3 with Micrometer Observation API
Programmer DD
Programmer DD
Nov 3, 2022 · Operations

One-Click Jenkins + Docker + Spring Boot Deployment: Step-by-Step Guide

This guide walks through setting up a one‑click automated deployment pipeline for a Spring Boot application using Docker and Jenkins on CentOS 7, covering Docker installation, Jenkins container setup, required plugins, job configuration, building, testing, and running the project.

DevOpsDockerJenkins
0 likes · 9 min read
One-Click Jenkins + Docker + Spring Boot Deployment: Step-by-Step Guide
Sohu Tech Products
Sohu Tech Products
Nov 2, 2022 · Information Security

Handling XSS Vulnerabilities in Spring Boot: Request Wrapper, Filters, and Jackson Custom Serialization

This article documents a step‑by‑step solution for preventing XSS attacks in a Spring Boot application, covering input validation, a custom HttpServletRequestWrapper, filter registration, and Jackson serializers/deserializers to escape malicious HTML both on request parameters and JSON payloads.

JacksonRequestWrapperSpring Boot
0 likes · 16 min read
Handling XSS Vulnerabilities in Spring Boot: Request Wrapper, Filters, and Jackson Custom Serialization
vivo Internet Technology
vivo Internet Technology
Nov 2, 2022 · Backend Development

Understanding Java SPI: Principles, Implementation, and Applications

Java SPI is a lightweight plug‑in mechanism that decouples service contracts from implementations using a META‑INF/services configuration file and the ServiceLoader class, enabling dynamic loading of providers as demonstrated with simple examples and applied in frameworks such as JDBC, Spring Boot, Apache Commons Logging, and Dubbo.

DubboJDBCJava
0 likes · 33 min read
Understanding Java SPI: Principles, Implementation, and Applications
Sanyou's Java Diary
Sanyou's Java Diary
Oct 31, 2022 · Backend Development

Mastering the Spring Cloud Alibaba Microservice Ecosystem: From Nacos to XXL‑JOB

This article provides a comprehensive guide to building a microservice ecosystem with Spring Cloud Alibaba, covering essential modules such as service registration, load balancing, configuration, messaging, gateway, fault tolerance, distributed transactions, tracing, and task scheduling, and showing how to integrate them with practical code examples.

Distributed SystemsNacosSpring Boot
0 likes · 26 min read
Mastering the Spring Cloud Alibaba Microservice Ecosystem: From Nacos to XXL‑JOB
FunTester
FunTester
Oct 27, 2022 · Backend Development

How to Fix @RequestBody Compatibility and Swagger Timeout Issues in Spring Boot

This article explains why @RequestBody conflicts with Swagger in Spring Boot, outlines two common but cumbersome work‑arounds, describes a Swagger API timeout caused by Groovy's MetaClass, and provides a concise configuration fix that eliminates both the timeout and the compatibility issue.

@RequestBodyAPI documentationGroovy
0 likes · 4 min read
How to Fix @RequestBody Compatibility and Swagger Timeout Issues in Spring Boot
Top Architect
Top Architect
Oct 26, 2022 · Backend Development

Implementing Database Read‑Write Splitting with Spring Boot and Dynamic DataSource Routing

This article explains how to achieve database read‑write separation in high‑concurrency Java applications by configuring master and slave data sources, implementing a routing DataSource, managing context with ThreadLocal, defining a custom @DataSourceSwitcher annotation, and applying AOP to switch between read and write operations.

AOPDataSource RoutingJava
0 likes · 11 min read
Implementing Database Read‑Write Splitting with Spring Boot and Dynamic DataSource Routing
macrozheng
macrozheng
Oct 25, 2022 · Backend Development

Master MyBatis in Spring Boot: Essential Tips, Dynamic SQL, and Advanced Queries

This guide walks you through integrating MyBatis with Spring Boot, covering basic CRUD operations, dynamic SQL constructs like if, choose, where, set, foreach, as well as advanced mapping techniques, pagination plugins, and practical code examples to help you master MyBatis in real-world projects.

JavaMyBatisSpring Boot
0 likes · 17 min read
Master MyBatis in Spring Boot: Essential Tips, Dynamic SQL, and Advanced Queries
Top Architect
Top Architect
Oct 24, 2022 · Backend Development

Comprehensive Overview of Spring and Spring Boot Extension Points and Bean Lifecycle

This article provides a detailed walkthrough of Spring and Spring Boot's bean lifecycle, explaining each extension point—from ApplicationContextInitializer to CommandLineRunner—illustrating their usage with code examples and describing practical scenarios for customizing bean creation, initialization, and destruction.

Extension PointsJavaSpring Boot
0 likes · 17 min read
Comprehensive Overview of Spring and Spring Boot Extension Points and Bean Lifecycle
Java Architecture Diary
Java Architecture Diary
Oct 21, 2022 · Backend Development

Spring Boot 2.7.5 Released: Key Fixes and Maven Mirror Workarounds

Spring Boot 2.7.5 has been released with over 30 bug fixes and dependency upgrades, includes details on configuration comment detection, Kafka auto‑configuration changes, PEM certificate handling, and provides guidance on switching from the unavailable Alibaba Cloud Maven mirror to Tencent Cloud’s mirror.

Backend DevelopmentBug FixesSpring Boot
0 likes · 3 min read
Spring Boot 2.7.5 Released: Key Fixes and Maven Mirror Workarounds
Programmer DD
Programmer DD
Oct 20, 2022 · Backend Development

How Spring Boot 3.0 Adds GraalVM AOT Support: Deep Dive into New Modules

Spring Boot 3.0 introduces built‑in GraalVM AOT support, adding new core, bean, and context modules, aot.factories configuration files, and runtime hints such as HttpMimeTypes and CodecConfigurer, enabling developers to replace spring‑native with native AOT extensions for custom resources and reflection.

AoTJavaRuntimeHints
0 likes · 7 min read
How Spring Boot 3.0 Adds GraalVM AOT Support: Deep Dive into New Modules
Java Architecture Diary
Java Architecture Diary
Oct 19, 2022 · Backend Development

Exploring Spring Framework 6.0’s New GraalVM AOT Support and Configuration

Spring Framework 6.0 introduces comprehensive GraalVM AOT support, adding new modules such as GraalVM feature, AOT core, and JavaPoet, along with aot.factories configuration files that enable developers to customize native image generation, replace Spring Native, and manage runtime hints for beans, context, and other components.

AoTJavaSpring Boot
0 likes · 6 min read
Exploring Spring Framework 6.0’s New GraalVM AOT Support and Configuration
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 18, 2022 · Backend Development

Diagnosing HTTP Timeout Issues in Spring Boot Microservices Caused by Caffeine Cache Eviction Lock Contention

The article analyzes a weekend outage of a Spring Boot microservice where all HTTP requests timed out, tracing the root cause to Caffeine's synchronous cache eviction lock being blocked by a long‑running compute operation, and proposes using AsyncCache with a dedicated thread pool to avoid similar contention.

Cache EvictionCaffeineJFR
0 likes · 11 min read
Diagnosing HTTP Timeout Issues in Spring Boot Microservices Caused by Caffeine Cache Eviction Lock Contention
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 17, 2022 · Backend Development

Spring Boot Session Auto‑Configuration: How Filters and Repositories Work

This article walks through Spring Boot 2.3's session auto‑configuration process, detailing how core SessionConfiguration classes are registered, how the appropriate SessionRepository is selected based on store type, and how the SessionRepositoryFilter wraps requests and responses to manage session data with implementations such as Redis.

JavaRedisSession Management
0 likes · 13 min read
Spring Boot Session Auto‑Configuration: How Filters and Repositories Work
Top Architect
Top Architect
Oct 11, 2022 · Backend Development

Implementing Distributed Locks with Redis and AOP in Spring Boot

This article explains how to protect time‑consuming business operations by using Redis as a distributed lock together with Spring AOP, covering annotation design, aspect implementation, lock acquisition, automatic renewal via a scheduled executor, and practical testing examples.

AOPJavaRedis
0 likes · 15 min read
Implementing Distributed Locks with Redis and AOP in Spring Boot
Top Architect
Top Architect
Oct 11, 2022 · Backend Development

Comprehensive Guide to Integrating MyBatis‑Plus with Spring Boot

This article provides a step‑by‑step tutorial on adding MyBatis‑Plus to a Spring Boot project, covering dependency setup, configuration, entity annotations, CRUD operations, pagination, logical deletion, enum handling, automatic field filling, multi‑datasource support, and testing with full code examples.

CRUDEnumJava
0 likes · 17 min read
Comprehensive Guide to Integrating MyBatis‑Plus with Spring Boot
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 11, 2022 · Backend Development

Structuring Maven Multi‑Module Projects and Building a Common Framework for Backend Services

This article explains why and how to split a Spring Boot project into Maven modules, defines a common framework with clearly separated modules such as api, base, rpc, service, interaction, and start, and provides practical steps and code snippets for managing dependencies in complex backend applications.

Backend DevelopmentCommon FrameworkMaven
0 likes · 7 min read
Structuring Maven Multi‑Module Projects and Building a Common Framework for Backend Services
Java Backend Technology
Java Backend Technology
Oct 9, 2022 · Cloud Native

How to Shrink Spring Boot Microservices to 30 MB with Spring Native

This article walks through diagnosing memory pressure in a multi‑service Spring Cloud Alibaba project, applying JVM tuning, installing GraalVM and Spring Native, configuring Maven and Docker Buildpacks, and finally building and running a native Spring Boot image that starts in milliseconds and consumes only a few dozen megabytes of RAM.

DockerJVM tuningSpring Boot
0 likes · 14 min read
How to Shrink Spring Boot Microservices to 30 MB with Spring Native
Java Architect Essentials
Java Architect Essentials
Oct 8, 2022 · Backend Development

Spring Boot Security Permission Management Tutorial with Role and Menu Implementation

This article provides a step‑by‑step guide to building a Spring Boot permission management system using Spring Security, Spring Data JPA, Thymeleaf and Bootstrap, covering database design, entity classes, Maven setup, security configuration, dynamic menu loading, front‑end rendering and testing with full source code examples.

Permission managementRole-Based Access ControlSpring Boot
0 likes · 19 min read
Spring Boot Security Permission Management Tutorial with Role and Menu Implementation
Java High-Performance Architecture
Java High-Performance Architecture
Oct 8, 2022 · Backend Development

How to Quickly Integrate Dubbo with Nacos in Spring Boot: A Step‑by‑Step Guide

This tutorial walks through building a simple Dubbo‑Nacos integration using Spring Boot, covering environment setup, Maven project structure, dependency management, service interface definition, provider and consumer modules, configuration files, and a test call, enabling rapid development of high‑performance Java microservices.

DubboJavaMaven
0 likes · 21 min read
How to Quickly Integrate Dubbo with Nacos in Spring Boot: A Step‑by‑Step Guide
Top Architect
Top Architect
Oct 8, 2022 · Backend Development

Reducing Spring Boot Microservice Memory Usage with Spring Native on a Single 2C/4G Server

This tutorial explains how to address memory constraints when deploying multiple Spring Boot microservices on a single 2‑CPU, 4‑GB server by applying JVM tuning, installing GraalVM, configuring Spring Native 0.11.1 with Maven plugins, building native images, and deploying them via Docker, achieving startup times in milliseconds and memory consumption around 28 MB.

DockerJVM tuningSpring Boot
0 likes · 14 min read
Reducing Spring Boot Microservice Memory Usage with Spring Native on a Single 2C/4G Server
Top Architect
Top Architect
Oct 6, 2022 · Backend Development

Nine Ways to Access Files in the resources Directory in Spring Boot

This article explains nine practical methods for reading files placed in the resources folder of a Spring Boot project, covering classloader resource retrieval, URL decoding, getFile(), getResourceAsStream, ClassPathResource, absolute paths, and environment‑variable based approaches, each with code examples.

Backend DevelopmentFile AccessJava
0 likes · 9 min read
Nine Ways to Access Files in the resources Directory in Spring Boot
Code Ape Tech Column
Code Ape Tech Column
Oct 5, 2022 · Backend Development

Spring Boot 2.7 Upgrade Pitfalls and Solutions

This article provides a comprehensive guide to upgrading Spring Boot to version 2.7, detailing common issues such as missing dependencies, logging conflicts, circular bean references, Swagger configuration changes, Flyway compatibility, JUnit version mismatches, and JSON Long precision loss, along with concrete code‑based solutions.

BackendFlywayJava
0 likes · 14 min read
Spring Boot 2.7 Upgrade Pitfalls and Solutions
Selected Java Interview Questions
Selected Java Interview Questions
Oct 3, 2022 · Backend Development

Key Changes in Spring Boot 3.0.0 M1 Release

The Spring Boot 3.0.0 M1 release upgrades the Java baseline to 17, migrates all Java EE APIs to Jakarta EE, removes several legacy components, updates a long list of Spring and third‑party dependencies, and outlines the upcoming milestone schedule for the framework.

MilestoneSpring Bootdependency-upgrade
0 likes · 5 min read
Key Changes in Spring Boot 3.0.0 M1 Release
Top Architect
Top Architect
Oct 2, 2022 · Backend Development

Implementing Delayed Message Queues with RabbitMQ Plugin in Spring Boot

This article demonstrates how to use RabbitMQ's delayed‑queue plugin together with Spring Boot to create a lazy exchange, configure a durable queue, send messages with a specified delay, and consume them, providing complete Java code examples and explaining why this approach outperforms traditional Redis, database polling, or JVM DelayQueue solutions.

Backend DevelopmentMessage queueRabbitMQ
0 likes · 9 min read
Implementing Delayed Message Queues with RabbitMQ Plugin in Spring Boot
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 30, 2022 · Backend Development

Unified Maven Dependency Management for Multi‑Module Java Projects

This article explains how Java developers can use Maven’s dependency‑management features to create a centralized version‑control system that unifies third‑party library versions across multiple modules and services, reducing upgrade pain, avoiding version conflicts, and establishing a solid foundation for scalable backend architecture.

JavaMavenMulti‑module
0 likes · 11 min read
Unified Maven Dependency Management for Multi‑Module Java Projects
Java Captain
Java Captain
Sep 29, 2022 · Backend Development

Implementing Dynamic Scheduled Tasks in Spring Boot

This tutorial demonstrates how to create Spring Boot scheduled tasks whose execution intervals can be changed at runtime using both CronTrigger and PeriodicTrigger, providing REST endpoints to update the cron expression or timer value dynamically.

Backend DevelopmentCron TriggerDynamic Scheduling
0 likes · 6 min read
Implementing Dynamic Scheduled Tasks in Spring Boot
Code Ape Tech Column
Code Ape Tech Column
Sep 28, 2022 · Backend Development

Design and Implementation of a Simple Single‑Node Configuration Center in Spring Boot

This article explains how to build a lightweight, single‑machine configuration center for Spring Boot micro‑services, detailing the core classes, file scanning, variable pooling, environment initialization, YAML conversion, controller endpoints, and runtime property updates, while also discussing current limitations and future improvements.

Configuration CenterDynamic ConfigurationJava
0 likes · 13 min read
Design and Implementation of a Simple Single‑Node Configuration Center in Spring Boot
Selected Java Interview Questions
Selected Java Interview Questions
Sep 23, 2022 · Backend Development

Diagnosing and Resolving a Native Memory Leak in Spring Boot Applications

This article details the investigation of an unexpected native memory consumption issue in a Spring Boot service, describing how JVM and system‑level tools were used to pinpoint the leak caused by the Spring Boot loader's Inflater usage and how configuring MCC scan paths or upgrading Spring Boot eliminated the problem.

JVMLinuxNative Memory Leak
0 likes · 12 min read
Diagnosing and Resolving a Native Memory Leak in Spring Boot Applications
Programmer DD
Programmer DD
Sep 22, 2022 · Backend Development

Generate and Configure SSL Certificates in Spring Boot with JDK Keytool & FreeSSL

This guide walks through creating a self‑signed SSL certificate with JDK’s keytool, configuring Spring Boot to use the PKCS12 keystore, redirecting HTTP to HTTPS, and alternatively obtaining a free FreeSSL certificate, covering necessary code, configuration files, and deployment steps for both Windows and Linux environments.

CertificateHTTPSJava
0 likes · 7 min read
Generate and Configure SSL Certificates in Spring Boot with JDK Keytool & FreeSSL
Code Ape Tech Column
Code Ape Tech Column
Sep 21, 2022 · Backend Development

Investigating Excessive Native Memory Usage in a Spring Boot Application Migrated to MDP Framework

After migrating a project to the MDP framework based on Spring Boot, the system repeatedly reported high swap usage despite a 4 GB heap configuration, leading to an investigation that uncovered native memory consumption caused by unchecked JAR scanning and allocator behavior, which was resolved by limiting scan paths and updating Spring Boot's inflater implementation.

JVMNative MemoryPerformance tuning
0 likes · 12 min read
Investigating Excessive Native Memory Usage in a Spring Boot Application Migrated to MDP Framework
Top Architect
Top Architect
Sep 20, 2022 · Backend Development

Understanding Spring Boot Auto‑Configuration Mechanism

This article explains how Spring Boot's auto‑configuration works, detailing the role of @SpringBootApplication, @EnableAutoConfiguration, the spring.factories mechanism, conditional annotations, and how configuration properties are bound to beans such as ServerProperties, providing a clear understanding for developers and interview preparation.

Backend DevelopmentConfigurationPropertiesJava
0 likes · 9 min read
Understanding Spring Boot Auto‑Configuration Mechanism