Tagged articles
14 articles
Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 21, 2026 · Backend Development

10 Most Valuable Features in Spring Boot Practice

This article presents ten highly valuable Spring Boot features—including global exception handling, MVC interceptors, programmatic bean access, @Import usage, startup runners, BeanDefinition modification, bean lifecycle callbacks, and custom scopes—each illustrated with concrete code examples and explanations for building cleaner, more maintainable Java backend applications.

BeanFactoryCommandLineRunnerCustom Scope
0 likes · 13 min read
10 Most Valuable Features in Spring Boot Practice
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 23, 2024 · Backend Development

How to Load Initial Data into Spring Boot 3.2.5: Runners, Beans, and SQL Scripts

This guide explains why pre‑loading initial data is essential for Spring Boot applications and demonstrates four practical methods—CommandLineRunner/ApplicationRunner, bean initialization with @PostConstruct, SQL script execution, and @Sql annotation for tests—complete with code snippets and configuration details.

Backend DevelopmentCommandLineRunnerData Initialization
0 likes · 8 min read
How to Load Initial Data into Spring Boot 3.2.5: Runners, Beans, and SQL Scripts
Top Architect
Top Architect
Jul 2, 2024 · Backend Development

Cache Preheating in Spring: Abstract Cache, Context Utility, and Implementation

This article explains the concept of cache preheating, provides an abstract cache class, a Spring ApplicationContext utility, a CommandLineRunner handler to load hot data at startup, and demonstrates a concrete NewsCache implementation with Redis integration, followed by a REST endpoint to access the cached data.

AbstractCacheCache PreheatCommandLineRunner
0 likes · 8 min read
Cache Preheating in Spring: Abstract Cache, Context Utility, and Implementation
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 16, 2024 · Backend Development

Master SpringBoot Runners: ApplicationRunner vs CommandLineRunner Explained

This guide explains how to run custom code after SpringApplication starts by implementing ApplicationRunner or CommandLineRunner, compares their method signatures and argument handling, shows execution timing, provides practical examples, and demonstrates how to control execution order with @Order or Ordered.

ApplicationRunnerCommandLineRunnerRunner
0 likes · 7 min read
Master SpringBoot Runners: ApplicationRunner vs CommandLineRunner Explained
Architect
Architect
Jun 11, 2024 · Backend Development

Mastering Spring Boot Startup: 11 Critical Questions & Execution Order

This article provides a deep technical analysis of Spring Boot's startup process, explains every relevant extension point, demonstrates how to log and verify execution order with sample code, answers eleven common questions about bean initialization, and offers practical guidance on when to safely open RPC, MQ, and HTTP traffic.

AutowiredCommandLineRunnerInitMethod
0 likes · 17 min read
Mastering Spring Boot Startup: 11 Critical Questions & Execution Order
Code Ape Tech Column
Code Ape Tech Column
Apr 17, 2024 · Backend Development

Spring Boot Startup Configuration Principles, Extension Points, and Performance Optimizations

This article explains the core principles of Spring Boot startup configuration, demonstrates how to intervene using ApplicationContextInitializer, SpringApplicationRunListener, ApplicationRunner, and CommandLineRunner, and provides practical optimization techniques to significantly reduce application launch time.

ApplicationContextInitializerApplicationRunnerBackend
0 likes · 32 min read
Spring Boot Startup Configuration Principles, Extension Points, and Performance Optimizations
Programmer DD
Programmer DD
May 30, 2022 · Backend Development

Master Spring Boot Startup: From static blocks to @PostConstruct and Runner Interfaces

This article explains the various ways to execute code during a Spring Boot application's startup, comparing Java static blocks, constructors, @PostConstruct methods, and Spring's ApplicationRunner and CommandLineRunner interfaces, including ordering with @Order and providing sample code and execution results.

ApplicationRunnerBackend DevelopmentCommandLineRunner
0 likes · 5 min read
Master Spring Boot Startup: From static blocks to @PostConstruct and Runner Interfaces
Programmer DD
Programmer DD
May 30, 2021 · Backend Development

Why CommandLineRunner Can Halt Your Spring Boot Startup—and How to Fix It

This article explains the differences between Spring Boot’s CommandLineRunner and ApplicationRunner, illustrates common pitfalls when using CommandLineRunner—such as blocking startup and causing exceptions—and shows how to run tasks in a separate thread to avoid startup failures.

ApplicationRunnerCommandLineRunnermultithreading
0 likes · 9 min read
Why CommandLineRunner Can Halt Your Spring Boot Startup—and How to Fix It
Top Architect
Top Architect
May 25, 2021 · Backend Development

Spring Boot Resource Initialization: CommandLineRunner, ApplicationRunner, @Order, @PostConstruct, InitializingBean, and ApplicationListener

This article explains several Spring Boot techniques for initializing resources at application startup, including CommandLineRunner, ApplicationRunner, @Order, @PostConstruct, InitializingBean, and ApplicationListener, and provides code examples and usage guidelines for each method.

ApplicationListenerApplicationRunnerCommandLineRunner
0 likes · 8 min read
Spring Boot Resource Initialization: CommandLineRunner, ApplicationRunner, @Order, @PostConstruct, InitializingBean, and ApplicationListener
Architect
Architect
Feb 5, 2021 · Backend Development

Spring Container Startup Listeners and Initialization Techniques

This article explains various ways to execute custom logic during Spring container startup, covering bean constructors, @PostConstruct, InitializingBean, ApplicationListener events, @EventListener, constructor injection, CommandLineRunner, and SmartLifecycle, with code examples and usage guidelines.

ApplicationListenerBean InitializationCommandLineRunner
0 likes · 10 min read
Spring Container Startup Listeners and Initialization Techniques
Programmer DD
Programmer DD
Jan 4, 2020 · Backend Development

Mastering Spring Boot Startup: CommandLineRunner, ApplicationRunner, Listeners & More

This article explains the five ways Spring Boot can execute code during application startup—including CommandLineRunner, ApplicationRunner, ApplicationListener, @PostConstruct, and InitializingBean—detailing their usage, ordering, argument parsing, and best‑practice recommendations.

ApplicationListenerApplicationRunnerCommandLineRunner
0 likes · 12 min read
Mastering Spring Boot Startup: CommandLineRunner, ApplicationRunner, Listeners & More
Programmer DD
Programmer DD
Jan 14, 2019 · Backend Development

Create a Custom Spring Boot Starter to Auto‑Count Database Entities

This guide explains how to build a Spring Boot starter that automatically counts and logs the number of entries for each entity at application startup, covering starter concepts, Maven setup, code implementation, auto‑configuration, and integration into a main project.

CommandLineRunnerSpring BootStarter
0 likes · 8 min read
Create a Custom Spring Boot Starter to Auto‑Count Database Entities
Programmer DD
Programmer DD
Mar 9, 2018 · Backend Development

When Does Spring Boot 2.0’s ApplicationStartedEvent Actually Fire?

This article explains the new ApplicationStartedEvent introduced in Spring Boot 2.0, shows the full event order, demonstrates how to write listeners for ApplicationPreparedEvent, ApplicationStartedEvent and ApplicationReadyEvent, and clarifies the difference between ApplicationStartedEvent and ApplicationReadyEvent using a CommandLineRunner example.

ApplicationStartedEventCommandLineRunnerEventListener
0 likes · 9 min read
When Does Spring Boot 2.0’s ApplicationStartedEvent Actually Fire?