Tagged articles
7 articles
Page 1 of 1
java1234
java1234
Jan 27, 2026 · Backend Development

7 Proven Spring Boot Startup Hacks to Slash Over 70% of Boot Time

This article presents seven concrete Spring Boot startup optimization techniques—including lazy bean initialization, precise component scanning, JVM flag tuning, auto‑configuration pruning, class‑loading shortcuts, lazy database connections, and GraalVM native compilation—backed by real‑world benchmarks that reduce launch times by up to 71% across e‑commerce, micro‑service, logistics and payment services.

Database ConnectionSpring Bootauto-configuration
0 likes · 9 min read
7 Proven Spring Boot Startup Hacks to Slash Over 70% of Boot Time
Java Backend Technology
Java Backend Technology
Nov 19, 2025 · Backend Development

How to Slash Spring Boot Startup Time by 70% with 7 Proven Optimizations

This article presents a step‑by‑step guide that combines lazy bean initialization, precise component scanning, JVM flag tuning, auto‑configuration exclusion, class‑loading analysis, delayed datasource creation, and AOT/layered compilation to reduce Spring Boot startup latency by up to 70% in real‑world services.

AOT compilationSpring Bootcomponent-scan
0 likes · 10 min read
How to Slash Spring Boot Startup Time by 70% with 7 Proven Optimizations
Java Captain
Java Captain
Mar 7, 2024 · Backend Development

How Spring Scans and Registers Custom Annotations

This article explains how the Spring framework discovers and registers custom annotations by using @ComponentScan, ClassPathScanningCandidateComponentProvider, and TypeFilter mechanisms, guiding developers to configure package scanning, apply meta‑annotations, and optionally implement custom filters for flexible bean management.

Custom AnnotationsTypeFilterbackend-development
0 likes · 5 min read
How Spring Scans and Registers Custom Annotations
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
Java Tech Enthusiast
Java Tech Enthusiast
Mar 9, 2022 · Backend Development

Annotation‑Based Bean Management and Dependency Injection in Spring

Spring’s annotation‑based bean registration and dependency injection replace verbose XML by using component scanning with @Component, @Controller, @Service, and @Repository, while @Autowired (or @Qualifier/@Primary) injects beans by type, @Resource supports name‑based injection, and @Value together with @PropertySource loads external configuration, though developers must handle issues such as NoUniqueBeanDefinitionException when multiple candidates exist.

Autowiredannotationscomponent-scan
0 likes · 8 min read
Annotation‑Based Bean Management and Dependency Injection in Spring
Selected Java Interview Questions
Selected Java Interview Questions
Nov 10, 2020 · Backend Development

Understanding the Priority and Interaction of SpringBootApplication, ComponentScan, and MapperScan Annotations

This article explains how SpringBootApplication, ComponentScan, and MapperScan annotations affect package scanning in Spring Boot, their precedence, differences, and the pitfalls of using them together, providing practical guidance for correctly configuring component and mapper scans in Java backend projects.

SpringBootannotationcomponent-scan
0 likes · 5 min read
Understanding the Priority and Interaction of SpringBootApplication, ComponentScan, and MapperScan Annotations
Programmer DD
Programmer DD
Jun 20, 2019 · Backend Development

Why Spring Fails to Load Encrypted @Component Classes and How It Scans Bytecode

An encrypted Spring @Component class causes a startup failure because Spring reads class files as raw byte arrays using ASM before loading them, and the encrypted bytecode violates JVM specifications, leading to an ArrayIndexOutOfBoundsException; the article explains this scanning mechanism and the hidden cause.

ASMJVMTISpring Boot
0 likes · 10 min read
Why Spring Fails to Load Encrypted @Component Classes and How It Scans Bytecode