Tagged articles
348 articles
Page 4 of 4
Top Architect
Top Architect
Jul 10, 2020 · Backend Development

How to Build a Multi‑module Spring Boot + MyBatis Project in IntelliJ IDEA

This tutorial walks through setting up a Spring Boot and MyBatis multi‑module backend project in IntelliJ IDEA, covering environment preparation, directory layout, parent and sub‑module creation, code examples, dependency configuration, MyBatis integration, and final verification of the running service.

Multi‑moduleMyBatisbackend-development
0 likes · 10 min read
How to Build a Multi‑module Spring Boot + MyBatis Project in IntelliJ IDEA
Programmer DD
Programmer DD
Jul 8, 2020 · Backend Development

Integrating kk-anti-reptile Anti‑Crawler into Spring‑Boot Applications

This guide explains how the kk-anti-reptile component protects Spring‑Boot distributed systems from crawlers by using a servlet filter, configurable IP and User‑Agent rules, captcha challenges, Maven integration, and required Redis and Apollo settings, with full code examples.

Captchaanti‑crawlerfilter
0 likes · 9 min read
Integrating kk-anti-reptile Anti‑Crawler into Spring‑Boot Applications
Java Backend Technology
Java Backend Technology
Jun 11, 2020 · Backend Development

How to Build a Robust Re‑entrant Distributed Lock with Redis, Lua and Java

This article explains why a MySQL repeatable‑read transaction can produce an incorrect negative balance, then shows how to prevent such anomalies by implementing a reliable, re‑entrant distributed lock using Redis commands, Lua scripts, and Java/Spring‑Boot code, while also covering lock expiration, atomicity, and the RedLock algorithm.

distributed-lockspring-boot
0 likes · 16 min read
How to Build a Robust Re‑entrant Distributed Lock with Redis, Lua and Java
Java Architecture Diary
Java Architecture Diary
May 18, 2020 · Operations

How to Implement Graceful Shutdown in Spring Boot 2.3 and Avoid Data Loss

Learn how Spring Boot 2.3’s built-in graceful shutdown works, configure it with server.shutdown=graceful, understand shutdown phases, timeout settings, and see code examples for handling shutdown hooks and actuator endpoints, ensuring active requests finish without data inconsistency across Tomcat, Jetty, Netty, and Undertow.

ActuatorGraceful ShutdownWeb server
0 likes · 5 min read
How to Implement Graceful Shutdown in Spring Boot 2.3 and Avoid Data Loss
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 17, 2020 · Backend Development

An Overview of the Spring Framework: History, Core Concepts, and Evolution

This article provides a comprehensive overview of the Spring framework, explaining what it is, why it became popular, its ecosystem—including Spring Boot, Spring Cloud, and Spring Cloud Data Flow—while also tracing the evolution of Java web architectures from early JSP/Servlet models to modern MVC and micro‑service designs.

FrameworkMVCarchitecture
0 likes · 9 min read
An Overview of the Spring Framework: History, Core Concepts, and Evolution
Programmer DD
Programmer DD
May 17, 2020 · Backend Development

What’s New in Spring Boot 2.3.0? Key Features and Upgrades Explained

Spring Boot 2.3.0 introduces upgraded core and third‑party dependencies, adds Java 14 support, enhances Docker image building, provides graceful shutdown and service‑availability probes, and includes numerous other improvements, with full release notes and extensive community contributions.

Release Notesbackend-developmentspring-boot
0 likes · 4 min read
What’s New in Spring Boot 2.3.0? Key Features and Upgrades Explained
Tech Musings
Tech Musings
Mar 23, 2020 · Backend Development

Mastering Multipart/Form-Data: From AJAX FormData to Spring Boot Backend

This guide explains how multipart/form-data enables sending JSON and binary data together, outlines its essential specifications, demonstrates front‑end FormData usage, and details Spring Boot back‑end handling with @RequestParam and @RequestPart annotations.

BackendFormDataHTTP
0 likes · 4 min read
Mastering Multipart/Form-Data: From AJAX FormData to Spring Boot Backend
Programmer DD
Programmer DD
Mar 11, 2020 · Backend Development

Switch from MyBatis Annotations to XML in Spring Boot: Step‑by‑Step Guide

This tutorial walks you through converting a Spring Boot MyBatis integration from annotation‑based configuration to XML‑based mapper files, covering scanner setup, interface definition, XML mapper creation, property configuration, and a unit test to verify database read/write operations.

XML Configurationbackend-developmentspring-boot
0 likes · 5 min read
Switch from MyBatis Annotations to XML in Spring Boot: Step‑by‑Step Guide
Senior Brother's Insights
Senior Brother's Insights
Mar 5, 2020 · Backend Development

Why queryForList Fails with JdbcTemplate and How Spring Boot Auto‑Configures It

This article explains the common misunderstanding of JdbcTemplate's queryForList method, shows the resulting IncorrectResultSetColumnCountException, clarifies the method's intended use for single‑column results, and walks through Spring Boot's JdbcTemplate auto‑configuration source code and its key annotations.

auto-configurationjdbc-templatespring-boot
0 likes · 7 min read
Why queryForList Fails with JdbcTemplate and How Spring Boot Auto‑Configures It
Senior Brother's Insights
Senior Brother's Insights
Mar 3, 2020 · Backend Development

Implement Real‑Time Messaging with STOMP in Spring Boot

This guide explains the STOMP protocol, its frame structure, and how to integrate it with Spring Boot to build a real‑time chat application, covering server‑side configuration, message broker setup, as well as the client‑side HTML and JavaScript needed for sending and receiving messages.

WebSocketreal-time messagingspring-boot
0 likes · 12 min read
Implement Real‑Time Messaging with STOMP in Spring Boot
Programmer DD
Programmer DD
Feb 19, 2020 · Backend Development

Simplify CRUD with Spring Data JPA: From Setup to Unit Tests

This article explains how Spring Data JPA streamlines CRUD operations in Spring Boot by configuring dependencies, defining entity classes and repository interfaces, leveraging method‑name query derivation and @Query annotations, and validating functionality with comprehensive unit tests.

spring-bootspring-data-jpa
0 likes · 12 min read
Simplify CRUD with Spring Data JPA: From Setup to Unit Tests
Senior Brother's Insights
Senior Brother's Insights
Feb 5, 2020 · Backend Development

How to Manage and Customize Favicon in Spring Boot 2.x

This guide explains how Spring Boot handles favicon across versions, how to disable the default icon, and provides step‑by‑step instructions for adding a custom favicon—including Thymeleaf integration, cache clearing tips, and troubleshooting common issues.

faviconspring-bootweb-development
0 likes · 5 min read
How to Manage and Customize Favicon in Spring Boot 2.x
Architect's Tech Stack
Architect's Tech Stack
Dec 22, 2019 · Backend Development

Reliable Email Sending with RabbitMQ and Spring Boot: Architecture, Implementation, and Testing

This article presents a complete Spring Boot solution for sending emails via RabbitMQ, covering message confirmation, consumer idempotency, retry mechanisms, manual acknowledgments, configuration details, code implementation, testing procedures, and an optional dynamic‑proxy extension for clean business logic.

ACKBackendEmail
0 likes · 12 min read
Reliable Email Sending with RabbitMQ and Spring Boot: Architecture, Implementation, and Testing
Architect's Tech Stack
Architect's Tech Stack
Dec 17, 2019 · Backend Development

Spring Boot Template Engine Hot Deployment Techniques

This article explains how to disable template caching in Spring Boot for Thymeleaf, FreeMarker, Groovy, and Velocity, and compares several hot‑deployment methods including Debug mode, spring-boot-devtools, Spring Loaded, and JRebel, providing configuration snippets and practical guidance.

DevToolsFreemarkerHot Deployment
0 likes · 3 min read
Spring Boot Template Engine Hot Deployment Techniques
Java Architecture Diary
Java Architecture Diary
Nov 25, 2019 · Backend Development

Why Does ApplicationContextInitializer Run Twice? Debugging Spring Boot Startup

This article explains the purpose of ApplicationContextInitializer in Spring Boot, shows how to implement custom conditions and initializers for environment‑specific configuration, and investigates why the initializer may execute twice when Spring Cloud Context is added, leading to bean duplication and port conflicts.

ApplicationContextInitializercustom-conditionspring-boot
0 likes · 5 min read
Why Does ApplicationContextInitializer Run Twice? Debugging Spring Boot Startup
Java Captain
Java Captain
Nov 18, 2019 · Backend Development

Top 10 Most Popular Java Open‑Source Projects on GitHub in October

The article presents a curated list of the ten most starred Java open‑source repositories on GitHub for October, covering algorithms, backend frameworks, design‑pattern libraries, e‑commerce platforms, cloud‑native demos, and a popular open‑source game, each with brief descriptions and star counts.

Backenddesign-patternsopen-source
0 likes · 5 min read
Top 10 Most Popular Java Open‑Source Projects on GitHub in October
Architect's Tech Stack
Architect's Tech Stack
Oct 24, 2019 · Backend Development

Spring Boot 2.2.0 Released with Performance Boosts, Lazy Initialization, Java 13 Support, Immutable @ConfigurationProperties, and RSocket Integration

Spring Boot 2.2.0 has been officially released, offering faster startup, lower memory usage, optional lazy initialization via the spring.main.lazy-initialization property, full Java 13 compatibility, immutable @ConfigurationProperties through constructor binding, and extensive RSocket auto‑configuration with a new starter.

Javaconfiguration-propertieslazy-initialization
0 likes · 4 min read
Spring Boot 2.2.0 Released with Performance Boosts, Lazy Initialization, Java 13 Support, Immutable @ConfigurationProperties, and RSocket Integration
Tech Musings
Tech Musings
Oct 17, 2019 · Backend Development

Fixing Spring Boot Quartz Integration: JobFactory and Autowiring Explained

After discovering misconfigurations in a Spring Boot project’s QuartzJobBean implementation, this article examines the root causes, compares legacy and modern Spring solutions—including custom JobFactory, AutowireCapableBeanFactory, and the spring-boot-starter-quartz starter—and provides detailed code examples to correctly integrate Quartz with Spring’s IoC container.

JavaQuartzautowiring
0 likes · 13 min read
Fixing Spring Boot Quartz Integration: JobFactory and Autowiring Explained
Architects Research Society
Architects Research Society
Sep 28, 2019 · Backend Development

Deploying a Spring Boot Application Behind NGINX with SSL

This guide explains how to prepare a Spring Boot application, set up a Debian server with Java, UFW and NGINX, configure the app as a systemd service, create an NGINX reverse‑proxy, and enable HTTPS using Certbot, providing a lightweight alternative to embedded Tomcat.

BackendSSLspring-boot
0 likes · 8 min read
Deploying a Spring Boot Application Behind NGINX with SSL
Java Backend Technology
Java Backend Technology
Sep 11, 2019 · Backend Development

How to Ensure Idempotent Requests in Java Backend: Strategies and Code Samples

This article explains the concept of idempotency in programming, outlines common causes of duplicate submissions, and presents multiple solutions—including frontend button disabling, PRG pattern, session tokens, database constraints, local locks using ConcurrentHashMap, AOP interceptors, and distributed Redis locks—complete with Java code examples.

distributed-lockspring-boot
0 likes · 14 min read
How to Ensure Idempotent Requests in Java Backend: Strategies and Code Samples
Java Architecture Diary
Java Architecture Diary
Aug 24, 2019 · Backend Development

Key Server & Frontend Version Specs + Maven Repository Configuration Guide

This guide lists the essential server and frontend component versions—including JDK, Maven, Spring Boot, Spring Cloud, Node, and Npm—explains special considerations for Spring milestone releases, and provides ready-to-use Maven repository and pluginRepository XML snippets for proper dependency management.

frontendnodejsspring-boot
0 likes · 3 min read
Key Server & Frontend Version Specs + Maven Repository Configuration Guide
Java Captain
Java Captain
May 22, 2019 · Backend Development

13 High-Quality Open-Source Spring Boot Projects for Java Developers

This article curates thirteen notable open‑source Spring Boot projects—including e‑commerce platforms, micro‑service scaffolds, payment solutions, and ERP systems—providing brief overviews, star counts, repository links, and demo screenshots to help Java developers discover useful resources for learning and building applications.

BackendERPMicroservices
0 likes · 11 min read
13 High-Quality Open-Source Spring Boot Projects for Java Developers
Programmer DD
Programmer DD
May 7, 2019 · Cloud Native

Sync Sentinel Flow Rules with Apollo for Persistent Configuration

This tutorial explains the limitation of Sentinel Dashboard rule persistence, analyzes the data flow, and provides a step‑by‑step solution using DynamicRuleProvider and DynamicRulePublisher to read and write flow rules in Apollo, complete with code examples and configuration details.

Apolloflow-controlsentinel
0 likes · 11 min read
Sync Sentinel Flow Rules with Apollo for Persistent Configuration
Programmer DD
Programmer DD
Apr 29, 2019 · Cloud Native

How to Register a Spring Cloud App to Multiple Service Registries Without Startup Errors

This article explains why a Spring Cloud application cannot register with multiple service registries by default, analyzes the startup failure caused by duplicate AutoServiceRegistration beans, and provides a step‑by‑step solution using configuration and auto‑configuration exclusion to enable successful multi‑registry registration.

multiple-registriesservice-discoveryspring-boot
0 likes · 11 min read
How to Register a Spring Cloud App to Multiple Service Registries Without Startup Errors
Programmer DD
Programmer DD
Jan 7, 2019 · Backend Development

Why Did My Spring Boot Service Consume 7 GB? Uncovering Native Memory Leaks

This article walks through a real‑world investigation of excessive native memory usage in a Spring Boot application, detailing JVM settings, Linux‑level tracing, custom memory allocators, and the root cause in Spring Boot’s ZipInflaterInputStream, ultimately providing a fix and best‑practice recommendations.

JVMLinux tracingNative Memory
0 likes · 11 min read
Why Did My Spring Boot Service Consume 7 GB? Uncovering Native Memory Leaks
Programmer DD
Programmer DD
Dec 13, 2018 · Backend Development

How Does Spring Cloud Stream’s Built‑In Retry Handle Message Failures?

This article explains Spring Cloud Stream’s default retry mechanism, demonstrates a complete example of producing and consuming messages with intentional failures, shows how to configure retry attempts, and discusses what happens when retries succeed or ultimately fail, providing practical guidance for reliable message processing.

Retrymessage-consumptionspring
0 likes · 10 min read
How Does Spring Cloud Stream’s Built‑In Retry Handle Message Failures?
Programmer DD
Programmer DD
Nov 27, 2018 · Backend Development

How to Prevent Duplicate Message Consumption with Spring Cloud Stream Consumer Groups

This article explains why duplicate message consumption occurs when using Spring Cloud Stream with RabbitMQ or Kafka, introduces the concept of consumer groups, and provides a step‑by‑step Java example showing how to configure and use consumer groups to ensure each message is processed by only one instance.

Kafkaconsumer-groupspring-boot
0 likes · 6 min read
How to Prevent Duplicate Message Consumption with Spring Cloud Stream Consumer Groups
Programmer DD
Programmer DD
Nov 3, 2018 · Backend Development

Explore Spring Cloud Alibaba: New Open‑Source Components for Java Microservices

Spring Cloud Alibaba, an open‑source project from Alibaba, has launched its first preview version, offering Java developers integrated service discovery, configuration management, high‑availability protection, and seamless Alibaba Cloud product components, all built on Spring Boot and Spring Cloud patterns.

Alibabacloud-nativespring-boot
0 likes · 6 min read
Explore Spring Cloud Alibaba: New Open‑Source Components for Java Microservices
Architect's Tech Stack
Architect's Tech Stack
Jan 16, 2018 · Cloud Native

Using Maven Docker Plugin to Build, Run, and Push Docker Images for Spring Boot Applications

This tutorial explains how to configure the spotify/docker-maven-plugin in a Spring Boot project's pom.xml, build Docker images with Maven commands, run containers, optionally use a custom Dockerfile, push images to DockerHub, and bind the build goal to the Maven package phase for automated container creation.

Containerci/cdcloud-native
0 likes · 12 min read
Using Maven Docker Plugin to Build, Run, and Push Docker Images for Spring Boot Applications
Programmer DD
Programmer DD
Oct 31, 2017 · Backend Development

Build a Spring AMQP RabbitMQ Publish‑Subscribe App in Minutes

This step‑by‑step guide shows how to set up a RabbitMQ server, create a Spring Boot project with Gradle or Maven, define a message receiver, configure queues, exchanges and bindings, and send and receive text messages using RabbitTemplate and a CommandLineRunner.

Messagingspring-amqpspring-boot
0 likes · 15 min read
Build a Spring AMQP RabbitMQ Publish‑Subscribe App in Minutes
Programmer DD
Programmer DD
Oct 4, 2017 · Information Security

How to Secure a Spring Boot Web App with Spring Security – Step‑by‑Step Guide

This tutorial walks through adding Spring Security to a Spring Boot web application, covering Maven dependencies, unsecured home page creation, MVC view‑controller setup, detailed security configuration, login and hello pages with Thymeleaf, the main application class, and testing the protected endpoints.

MVCspring-bootspring-security
0 likes · 9 min read
How to Secure a Spring Boot Web App with Spring Security – Step‑by‑Step Guide
Programmer DD
Programmer DD
Aug 21, 2017 · Backend Development

How to Build a Spring Cloud Zuul Service Gateway Step‑by‑Step

This guide walks you through constructing a Spring Cloud Zuul gateway, covering the shortcomings of exposing services directly, the required preparations, Maven dependencies, application code, YAML configuration, automatic route creation, and how to verify the gateway’s behavior.

service gatewayspring-bootspring-cloud
0 likes · 8 min read
How to Build a Spring Cloud Zuul Service Gateway Step‑by‑Step
Programmer DD
Programmer DD
Jul 30, 2017 · Backend Development

Kickstart Spring Boot: Build Your First Web Service in Minutes

This guide walks you through creating a basic Spring Boot project with Maven, adding the web starter, implementing a simple Hello World REST controller, and writing unit tests using MockMvc, providing step‑by‑step instructions, code snippets, and project structure details to help Java developers quickly get started with lightweight Spring applications.

REST APIspring-bootunit testing
0 likes · 7 min read
Kickstart Spring Boot: Build Your First Web Service in Minutes