Tagged articles

spring-boot

362 articles · Page 4 of 4
Java Captain
Java Captain
Oct 18, 2020 · Backend Development

Common Spring Boot Annotations and Their Usage

This article provides a comprehensive overview of common Spring Boot annotations, including @SpringBootApplication, @RestController, @RequestMapping, and JPA annotations, explaining their purposes, usage, and example code snippets for building Java backend applications effectively.

jpaspring-bootspring-mvc
0 likes · 9 min read
Common Spring Boot Annotations and Their Usage
Selected Java Interview Questions
Selected Java Interview Questions
Oct 1, 2020 · Cloud Native

A Comprehensive Guide to Microservices Architecture and Adoption

This article explains the origins, principles, advantages, disadvantages, adoption criteria, architectural stages, required infrastructure, design patterns, service splitting methods, and popular frameworks for building cloud‑native microservices, helping engineers decide when and how to transition from monoliths to microservice‑based systems.

Service Mesharchitecturecloud-native
0 likes · 16 min read
A Comprehensive Guide to Microservices Architecture and Adoption
Architecture Digest
Architecture Digest
Sep 9, 2020 · Backend Development

Spring Boot Best Practices for Building Robust Microservices

This article presents a comprehensive collection of Spring Boot best practices—ranging from custom BOM dependency management and auto‑configuration to project initialization, code organization, controller and service design, database isolation, concurrency handling, externalized configuration, logging, and testing—to help developers create maintainable, high‑quality microservice applications.

Auto-Configurationbest-practicesdependency management
0 likes · 12 min read
Spring Boot Best Practices for Building Robust Microservices
Java Architect Essentials
Java Architect Essentials
Aug 23, 2020 · Backend Development

Understanding Spring Cloud Microservice Architecture: Service Governance, Discovery, and Core Components

This article introduces Spring Cloud as a Spring Boot‑based microservice framework, explains the fundamentals of service architecture through an illustrative story, and details essential components such as service registry, discovery, load balancing, circuit breaking, configuration management, messaging bus, and tracing, accompanied by practical code examples.

Microservicesbackendcircuit-breaker
0 likes · 12 min read
Understanding Spring Cloud Microservice Architecture: Service Governance, Discovery, and Core Components
Senior Brother's Insights
Senior Brother's Insights
Aug 21, 2020 · Backend Development

What’s New in Spring Boot 2.3.3? Features, Bug Fixes & Dependency Upgrades

Spring Boot 2.3.3 stable release brings 67 improvements including HTTP/2 support without mandatory Jetty/Conscrypt, numerous bug fixes such as handling null values in SPRING_APPLICATION_JSON, endpoint ID migration, Reactor debug issues, OCI image build failures, and upgraded dependencies, with full details on the GitHub release page.

BugFixesReleasenew-features
0 likes · 4 min read
What’s New in Spring Boot 2.3.3? Features, Bug Fixes & Dependency Upgrades
Java Architecture Diary
Java Architecture Diary
Aug 19, 2020 · Backend Development

What Changed in Spring Boot 2.4 Config File Processing?

Spring Boot 2.4 introduces a major overhaul of how application.properties and application.yml files are processed, adding deterministic document ordering, new profile activation keys, support for multi‑document properties, profile groups, import of external configuration, and Kubernetes‑aware volume mounts, while preserving backward compatibility through a legacy mode.

@ProfileConfigurationYAML
0 likes · 12 min read
What Changed in Spring Boot 2.4 Config File Processing?
Top Architect
Top Architect
Aug 15, 2020 · Backend Development

Integrating Retrofit with Spring Boot via retrofit-spring-boot-starter

This article explains how to use the retrofit‑spring‑boot‑starter library to seamlessly combine Square's Retrofit HTTP client with Spring Boot, covering dependency setup, annotation configuration, interface definition, injection, annotation‑based interceptors, connection‑pool management, logging, exception formatting, call adapters, converters, and global interceptors.

HTTP ClientRetrofitspring-boot
0 likes · 14 min read
Integrating Retrofit with Spring Boot via retrofit-spring-boot-starter
Programmer DD
Programmer DD
Aug 14, 2020 · Backend Development

Switching Spring Boot Cache from EhCache to Redis for Strong Consistency

This tutorial explains why in‑process caches like EhCache can cause consistency problems in clustered environments and demonstrates step‑by‑step how to replace EhCache with Redis in a Spring Boot 2.x application, including dependency setup, configuration, and a unit test that verifies caching behavior.

EhcacheJavaSpring Data Redis
0 likes · 7 min read
Switching Spring Boot Cache from EhCache to Redis for Strong Consistency
Java Architecture Diary
Java Architecture Diary
Aug 11, 2020 · Backend Development

What’s New in Spring Boot Admin 2.3.0? Key Features and Upgrade Guide

Spring Boot Admin 2.3.0, built on Spring Boot 2.3.x and Spring Cloud Hoxton.SR7, introduces i18n support, metadata configuration, request‑body caching, a new ApplicationRegistrator interface, MBean name display improvements, and enhanced alarm notifications, with full dependency details and demo screenshots provided.

i18nrelease-notesspring-boot
0 likes · 2 min read
What’s New in Spring Boot Admin 2.3.0? Key Features and Upgrade Guide
Programmer DD
Programmer DD
Aug 7, 2020 · Backend Development

Mastering Spring’s Event System: From Events to Listeners and Broadcasters

This article explains Spring's event mechanism, covering the ApplicationEvent API, built‑in events, listener registration via @EventListener, the internal processing flow, SimpleApplicationEventMulticaster broadcasting, and the specific event types and listeners used in Spring Boot.

EventJavaspring-boot
0 likes · 10 min read
Mastering Spring’s Event System: From Events to Listeners and Broadcasters
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.

MyBatisbackend-developmentmulti-module
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.

anti‑crawlercaptchafilter
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.

Graceful ShutdownWeb Serveractuator
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.

MVCarchitectureframework
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.

backend-developmentrelease-notesspring-boot
0 likes · 4 min read
What’s New in Spring Boot 2.3.0? Key Features and Upgrades Explained
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.

ACKEmailbackend
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.

JavaLazy InitializationRelease
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.

SSLbackendspring-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.

ERPMicroservicesbackend
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.

ApolloSentinelflow-control
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.

Springmessage-consumptionretry
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.

Consumer Groupkafkaspring-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.

CI/CDcloud-nativecontainer
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 APIUnit Testingspring-boot
0 likes · 7 min read
Kickstart Spring Boot: Build Your First Web Service in Minutes