Tagged articles
1744 articles
Page 12 of 18
Top Architect
Top Architect
Mar 9, 2022 · Backend Development

Deep Dive into Spring Bean Lifecycle and Initialization Process

This article provides a comprehensive analysis of Spring's bean lifecycle, detailing the refresh method steps, post‑processor ordering, bean creation, dependency injection via @Autowired and @Resource, Aware callbacks, and initialization hooks such as @PostConstruct and init‑method.

Spring Frameworkbean-lifecycledependency-injection
0 likes · 24 min read
Deep Dive into Spring Bean Lifecycle and Initialization Process
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
Code Ape Tech Column
Code Ape Tech Column
Mar 9, 2022 · Backend Development

Eliminating Code Duplication in Business Logic with Design Patterns, Annotations, Reflection, and Bean Mapping

This article explains how to reduce repetitive business‑level Java code by applying the Template Method and Factory patterns, leveraging custom annotations with reflection, and using bean‑mapping utilities, thereby improving maintainability, extensibility, and overall code quality.

Code RefactoringDesign PatternsReflection
0 likes · 20 min read
Eliminating Code Duplication in Business Logic with Design Patterns, Annotations, Reflection, and Bean Mapping
JavaEdge
JavaEdge
Mar 8, 2022 · Backend Development

Spring Framework 6.x Release: Key Changes and Migration Guide

Spring Framework 6.x has been officially released, introducing Jakarta EE‑based packages for core annotations, requiring Hibernate‑Core‑Jakarta upgrades, updating servlet containers to Tomcat 10/Jetty 11/Undertow 2.2.14, and altering Web MVC/WebFlux behavior, with detailed migration steps and reference links.

Backendjakarta-eejava
0 likes · 4 min read
Spring Framework 6.x Release: Key Changes and Migration Guide
macrozheng
macrozheng
Mar 8, 2022 · Backend Development

Master Spring RestTemplate: Simplify HTTP Calls and File Transfers in Java

This tutorial walks through using Spring's RestTemplate to replace complex HttpURLConnection and Apache HttpClient code, covering environment setup, bean configuration, GET/POST/PUT/DELETE operations, file upload/download, and advanced exchange usage with clear Java examples.

APIHTTPTutorial
0 likes · 19 min read
Master Spring RestTemplate: Simplify HTTP Calls and File Transfers in Java
NiuNiu MaTe
NiuNiu MaTe
Mar 8, 2022 · Backend Development

How a Junior Engineer Landed a Tencent Backend Offer: Interview Experience & Tips

This article shares a junior engineer's detailed journey of securing a backend engineering offer at Tencent, covering three interview rounds, key technical topics like Spring, HashMap, Elasticsearch, Redis, and personal reflections on strengths, weaknesses, and preparation strategies.

ElasticsearchTencentbackend-development
0 likes · 5 min read
How a Junior Engineer Landed a Tencent Backend Offer: Interview Experience & Tips
IT Architects Alliance
IT Architects Alliance
Mar 3, 2022 · Backend Development

Unified Exception Handling in Spring Using @ControllerAdvice, Assertions, and Enums

This article explains how to replace repetitive try‑catch blocks in Java Spring applications with a clean, unified exception handling approach that leverages @ControllerAdvice, custom Assert utilities, enum‑based error codes, and standardized response objects to improve code readability and maintainability.

AssertControllerAdviceException Handling
0 likes · 20 min read
Unified Exception Handling in Spring Using @ControllerAdvice, Assertions, and Enums
Top Architect
Top Architect
Mar 2, 2022 · Backend Development

Unified Exception Handling in Spring Boot Using @ControllerAdvice, Assert, and Enum‑Based Error Codes

This article explains how to replace repetitive try‑catch blocks in Java Spring applications with a unified exception handling strategy that leverages @ControllerAdvice, custom Assert utilities, and enum‑driven error codes to produce clean, maintainable backend code and consistent error responses.

AssertException HandlingUnified Error Handling
0 likes · 20 min read
Unified Exception Handling in Spring Boot Using @ControllerAdvice, Assert, and Enum‑Based Error Codes
Top Architect
Top Architect
Mar 1, 2022 · Backend Development

Spring Framework Utility Classes Overview: Assert, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, StreamUtils, ReflectionUtils, AopUtils

This article provides a comprehensive reference of Spring Framework utility classes—including Assert, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, StreamUtils, ReflectionUtils, and AopUtils—detailing their purpose, typical usage scenarios, and full method signatures for Java backend development.

FileIOReflectionassertions
0 likes · 14 min read
Spring Framework Utility Classes Overview: Assert, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, StreamUtils, ReflectionUtils, AopUtils
Java High-Performance Architecture
Java High-Performance Architecture
Mar 1, 2022 · Backend Development

Unlocking Spring: Core Principles, Design Patterns, and IoC Explained

This comprehensive guide walks through Spring's lightweight Java framework, covering its core principles, key features, advantages and drawbacks, the design patterns it employs, core modules, IoC container mechanics, bean scopes, lifecycle, dependency injection techniques, and AOP fundamentals, all illustrated with diagrams and code snippets.

Design PatternsIoCaop
0 likes · 48 min read
Unlocking Spring: Core Principles, Design Patterns, and IoC Explained
Top Architect
Top Architect
Feb 27, 2022 · Backend Development

Why Field Injection Is Discouraged in Spring and Preferred Alternatives

The article explains Spring's warning against field injection, compares constructor‑based, setter‑based, and field‑based dependency injection with code examples, outlines the drawbacks of field injection, and recommends using constructor or setter injection for safer, more maintainable backend Java applications.

Constructor InjectionField InjectionSetter Injection
0 likes · 7 min read
Why Field Injection Is Discouraged in Spring and Preferred Alternatives
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 25, 2022 · Backend Development

Latest Java & Framework Releases: JDK 18/19, Spring, Quarkus, Micronaut

Recent Java news highlights early‑access builds of JDK 18 and JDK 19, the 2022 Java roadmap, Spring Framework 5.3.15 and 6.0.0‑M2 releases, Spring Data milestones, Quarkus 2.6.2.Final, Micronaut 3.2.5/3.2.6, Piranha 22.1.0, JobRunr 4.0.6, Eclipse Jifa, Micrometer 2.0.0‑M1 and Tracing 1.0.0‑M1, plus the Foojay mid‑year status report.

Framework ReleasesJDKMicrometer
0 likes · 9 min read
Latest Java & Framework Releases: JDK 18/19, Spring, Quarkus, Micronaut
Java Captain
Java Captain
Feb 24, 2022 · Backend Development

How Spring Solves Bean Circular Dependencies Using a Three-Level Cache

This article explains how Spring's bean lifecycle and its three-level caching mechanism—singletonObjects, earlySingletonObjects, and singletonFactories—work together to resolve circular dependencies, especially when AOP proxies are involved, highlighting why a three‑cache approach is necessary.

Three-level Cacheaopbackend-development
0 likes · 9 min read
How Spring Solves Bean Circular Dependencies Using a Three-Level Cache
Java Backend Technology
Java Backend Technology
Feb 24, 2022 · Backend Development

Master Spring’s Core Utility Classes: Assertions, ObjectUtils, StringUtils, and More

This article provides a comprehensive overview of Spring Framework’s core utility classes—including Assert, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, StreamUtils, ReflectionUtils, and AOP helpers—detailing their purpose and key method signatures for developers working on Java backend projects.

Reflectionaopfile-io
0 likes · 13 min read
Master Spring’s Core Utility Classes: Assertions, ObjectUtils, StringUtils, and More
Java Architect Essentials
Java Architect Essentials
Feb 20, 2022 · Backend Development

Common Spring Utility Classes: Assertions, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, ReflectionUtils, AopUtils Overview

This article consolidates frequently used Spring utility classes—such as Assert, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, ReflectionUtils, and AopUtils—explaining their purpose, typical usage patterns, and providing code snippets to help developers avoid redundant implementations and leverage built‑in Spring functionality.

FileIOReflectionassertions
0 likes · 14 min read
Common Spring Utility Classes: Assertions, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, ReflectionUtils, AopUtils Overview
Selected Java Interview Questions
Selected Java Interview Questions
Feb 16, 2022 · Backend Development

Java Backend Development Best Practices and Tips

This article presents a collection of practical Java backend development guidelines, covering configuration management with @ConfigurationProperties, constructor injection via @RequiredArgsConstructor, code modularization, exception handling, database query reduction, null avoidance, strategic use of design patterns, IDE assistance, source code reading, and fundamental coding techniques such as map traversal and collection choice.

Configurationbest practicescode quality
0 likes · 7 min read
Java Backend Development Best Practices and Tips
Top Architect
Top Architect
Feb 16, 2022 · Backend Development

Understanding Spring AOP Annotations and Their Execution Order

This article explains the common Spring AOP annotations such as @Before, @After, @AfterReturning, @AfterThrowing and @Around, demonstrates how to set up a Spring Boot project, write an interface, implementation, aspect, and discusses execution order, multiple aspects, and proxy‑failure scenarios.

Proxyannotationsaop
0 likes · 8 min read
Understanding Spring AOP Annotations and Their Execution Order
Top Architect
Top Architect
Feb 14, 2022 · Backend Development

Common Spring Framework Utility Classes: Assertions, ObjectUtils, StringUtils, CollectionUtils, File/Resource IO, Reflection and AOP Helpers

This article presents a curated collection of Spring Framework utility classes—including assertion helpers, object/array/collection utilities, file and resource IO tools, as well as reflection and AOP utilities—providing ready‑to‑use methods that replace many custom helper functions in Java backend development.

ReflectionUtility Classesaop
0 likes · 13 min read
Common Spring Framework Utility Classes: Assertions, ObjectUtils, StringUtils, CollectionUtils, File/Resource IO, Reflection and AOP Helpers
Architecture Digest
Architecture Digest
Feb 12, 2022 · Backend Development

Understanding RPC Implementation Principles and a Basic Java RPC Framework Example

This article explains the fundamentals of Remote Procedure Call (RPC), detailing the end‑to‑end workflow from defining service interfaces and implementations, registering services in a Zookeeper registry, handling network communication with Netty, and generating client‑side proxies using Spring and JDK dynamic proxies, all illustrated with complete Java code examples.

RPCZooKeeperjava
0 likes · 19 min read
Understanding RPC Implementation Principles and a Basic Java RPC Framework Example
Top Architect
Top Architect
Feb 9, 2022 · Backend Development

Implementing RPC from Scratch: Service Interface, Registration, Netty Server, and Client Proxy

This article explains the fundamentals of Remote Procedure Call (RPC), detailing the definition, basic call flow, service interface design, server registration with Zookeeper, Netty-based network communication, dynamic proxy generation on the client side, and provides complete Java code examples for a working RPC framework.

Dynamic ProxyNettyRPC
0 likes · 17 min read
Implementing RPC from Scratch: Service Interface, Registration, Netty Server, and Client Proxy
Code Ape Tech Column
Code Ape Tech Column
Feb 8, 2022 · Backend Development

Refactoring Long if...else Chains in Java Using Design Patterns and Spring

This article explains why lengthy if...else statements in Java payment services violate the Open‑Closed and Single‑Responsibility principles and demonstrates several refactoring techniques—including annotations, dynamic bean naming, template methods, strategy‑factory, and chain‑of‑responsibility patterns—using Spring to eliminate the conditional logic.

Design PatternsStrategy Patternif-else
0 likes · 15 min read
Refactoring Long if...else Chains in Java Using Design Patterns and Spring
Programmer DD
Programmer DD
Feb 7, 2022 · Backend Development

Master Spring’s Core Utility Classes: Assertions, Collections, IO, and Reflection

This article provides a comprehensive guide to Spring's built‑in utility classes—including Assert, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, StreamUtils, ReflectionUtils, and AOP helpers—explaining their purpose, common methods, and usage examples to replace redundant custom code.

BackendReflectionassertions
0 likes · 16 min read
Master Spring’s Core Utility Classes: Assertions, Collections, IO, and Reflection
21CTO
21CTO
Jan 28, 2022 · Backend Development

How Does RPC Work? A Deep Dive into Java RPC Implementation with Netty and Zookeeper

This article explains the fundamentals of Remote Procedure Call (RPC), walks through the complete request‑response flow, and provides a step‑by‑step Java implementation using Spring, custom XML namespaces, Netty for network communication, and Zookeeper for service registration and discovery.

NettyRPCZooKeeper
0 likes · 17 min read
How Does RPC Work? A Deep Dive into Java RPC Implementation with Netty and Zookeeper
NetEase Smart Enterprise Tech+
NetEase Smart Enterprise Tech+
Jan 21, 2022 · Backend Development

Mastering SPI: Build Extensible Java, Spring, and Dubbo Applications

This article explains the Service Provider Interface (SPI) mechanism across JDK, Spring, and Dubbo, showing how to create modular, maintainable code through interface definitions, configuration files, and ServiceLoader or ExtensionLoader usage, with detailed examples, code snippets, and analysis of advantages and drawbacks.

DubboSPIextensibility
0 likes · 17 min read
Mastering SPI: Build Extensible Java, Spring, and Dubbo Applications
Java Captain
Java Captain
Jan 18, 2022 · Backend Development

Best Practices for Java Backend Development: Configuration, Lombok, Modular Code, Exception Handling, and More

This article shares a collection of practical Java backend development habits, covering configuration with @ConfigurationProperties, Lombok's @RequiredArgsConstructor, code modularization, exception throwing, reducing DB queries, avoiding null returns, simplifying if‑else, keeping controllers thin, IDE tips, source code reading, design patterns, and fundamental coding techniques.

BackendConfigurationDesign Patterns
0 likes · 6 min read
Best Practices for Java Backend Development: Configuration, Lombok, Modular Code, Exception Handling, and More
Sanyou's Java Diary
Sanyou's Java Diary
Jan 18, 2022 · Backend Development

Deep Dive into Spring Bean Lifecycle: Property Assignment, Aware Callbacks, Initialization & Destruction

This article continues the Spring bean lifecycle series by explaining the property‑assignment stage, Aware interface callbacks, bean initialization phases, and the destruction process, illustrating each step with source‑code diagrams and highlighting how BeanPostProcessor extensions drive the lifecycle.

Spring Frameworkbackend-developmentdependency-injection
0 likes · 9 min read
Deep Dive into Spring Bean Lifecycle: Property Assignment, Aware Callbacks, Initialization & Destruction
Top Architect
Top Architect
Jan 14, 2022 · Backend Development

Understanding Exception Types and @Transactional Usage in Spring

This article explains Java exception classification, distinguishes checked and unchecked exceptions, and demonstrates how to configure Spring's @Transactional annotation to control rollback behavior, including examples of rollbackFor, notRollbackFor, and propagation settings, while highlighting common pitfalls with try‑catch blocks.

Exception Handlingbackend-developmentjava
0 likes · 5 min read
Understanding Exception Types and @Transactional Usage in Spring
Programmer DD
Programmer DD
Jan 12, 2022 · Backend Development

Mastering Spring’s HttpMessageConverter: Elegant Request/Response Handling

This article explains how Spring's HttpMessageConverter abstracts HTTP message conversion, shows how to read request bodies via HttpInputMessage and ServletServerHttpRequest, demonstrates a practical filter using FormHttpMessageConverter, and illustrates writing JSON responses with MappingJackson2HttpMessageConverter, all with concise code examples.

BackendHttpMessageConverterServlet
0 likes · 6 min read
Mastering Spring’s HttpMessageConverter: Elegant Request/Response Handling
IT Architects Alliance
IT Architects Alliance
Jan 10, 2022 · Backend Development

How RPC Works: Build a Simple RPC Framework with Spring, Netty, and Zookeeper

This article explains the fundamentals of Remote Procedure Call (RPC), detailing the end‑to‑end workflow—from interface definition and dynamic proxy generation on the client, through service registration in ZooKeeper, to server‑side handling with Spring and Netty—accompanied by complete Java code snippets and configuration examples.

Distributed SystemsNettyRPC
0 likes · 17 min read
How RPC Works: Build a Simple RPC Framework with Spring, Netty, and Zookeeper
Top Architect
Top Architect
Jan 8, 2022 · Backend Development

Comprehensive Guide to Spring MVC and Spring Boot Annotations

This article provides a detailed overview of Spring MVC request‑mapping annotations, Spring Bean and dependency‑injection annotations, and essential Spring Boot configuration annotations, illustrating their usage with code examples and explaining how they work together to build robust backend applications.

Spring BootSpring MVCannotations
0 likes · 13 min read
Comprehensive Guide to Spring MVC and Spring Boot Annotations
Architect's Journey
Architect's Journey
Jan 5, 2022 · Backend Development

Why @Transactional Can Trigger Production Outages: Lessons from a Long‑Transaction Failure

The author recounts a real‑world incident where a Spring @Transactional annotation caused database connection exhaustion, deadlocks, and a production outage, explains how long‑running transactions arise from holding a single connection during costly operations, and offers practical ways to avoid them by splitting methods or using programmatic transactions.

Database DeadlockLong TransactionProgrammatic Transaction
0 likes · 10 min read
Why @Transactional Can Trigger Production Outages: Lessons from a Long‑Transaction Failure
Top Architect
Top Architect
Jan 2, 2022 · Backend Development

Debugging Redis Connection Pool Blocking Issues in a Spring Backend Application

The article details a step‑by‑step investigation of a Spring‑based backend where API requests hung due to Redis connection pool misconfiguration, showing how thread dumps, jstack, and Arthas were used to pinpoint blocking in Jedis pool acquisition, and provides corrected configuration and proper connection handling recommendations.

Connection PoolJedisdebugging
0 likes · 9 min read
Debugging Redis Connection Pool Blocking Issues in a Spring Backend Application
JavaEdge
JavaEdge
Dec 29, 2021 · Backend Development

Understanding Spring's Parent-Child Containers: Architecture, Startup Flow, and Common Pitfalls

This article explains the concept of Spring parent-child containers, their roles in separating web and service layers, the startup sequence of root and servlet WebApplicationContexts, how to verify their existence, and answers common configuration questions with code examples and diagrams.

Parent-Child ContainerSpring MVCWebApplicationContext
0 likes · 12 min read
Understanding Spring's Parent-Child Containers: Architecture, Startup Flow, and Common Pitfalls
Top Architect
Top Architect
Dec 28, 2021 · Backend Development

Using @PathVariable for RESTful API Parameters in Spring MVC

This article explains how to use the @PathVariable annotation in Spring MVC to handle required and optional parameters in RESTful URLs, illustrates the syntax with image-based examples, discusses the complexity of multiple parameters, and advises using POST for more intricate cases, while also offering promotional links and giveaways.

PathVariableRESTfulapi-design
0 likes · 4 min read
Using @PathVariable for RESTful API Parameters in Spring MVC
Top Architect
Top Architect
Dec 23, 2021 · Backend Development

Implementing Custom Logging with Spring AOP and Annotations

This article explains how to create a custom logging solution in Spring by defining annotation-based AOP aspects, configuring pointcuts, handling various advice types, and persisting log details such as user, operation, parameters, and results into a database using Java code examples.

Custom Annotationaopaspectj
0 likes · 14 min read
Implementing Custom Logging with Spring AOP and Annotations
Architect's Tech Stack
Architect's Tech Stack
Dec 21, 2021 · Backend Development

Using @Async Annotation in Spring: Application Scenarios, Built‑in Thread Pools, and Custom Thread‑Pool Configuration

This article explains the @Async annotation in Spring, how it enables asynchronous method execution, compares the built‑in executors, shows how to configure custom thread pools via AsyncConfigurer or AsyncConfigurerSupport, and provides code examples for void, Future and CompletableFuture based async methods.

AsyncThreadPoolconcurrency
0 likes · 12 min read
Using @Async Annotation in Spring: Application Scenarios, Built‑in Thread Pools, and Custom Thread‑Pool Configuration
Java Interview Crash Guide
Java Interview Crash Guide
Dec 21, 2021 · Backend Development

How to Implement Custom Logging with Spring AOP and Annotations

This guide explains how to create a custom Spring AOP logging solution by defining a @SystemCrmlog annotation, extracting its parameters via pointcuts, and persisting detailed log entries—including user, method, parameters, and execution results—to a database using aspect advice methods.

Custom Annotationaopjava
0 likes · 15 min read
How to Implement Custom Logging with Spring AOP and Annotations
Su San Talks Tech
Su San Talks Tech
Dec 15, 2021 · Backend Development

Top 18 Spring Interview Questions and Answers You Must Know

Explore a comprehensive list of 18 essential Spring interview questions covering design patterns, core modules, IoC, DI, AOP, proxy types, bean lifecycle, circular dependency resolution, transaction management, and Spring Boot auto‑configuration, complete with concise explanations and illustrative diagrams to help you ace your interview.

BackendIoCaop
0 likes · 17 min read
Top 18 Spring Interview Questions and Answers You Must Know
macrozheng
macrozheng
Dec 13, 2021 · Backend Development

Master Spring Validation: From Simple Use to Advanced Techniques and Internals

This guide thoroughly explores Spring Validation, covering basic and advanced usage such as requestBody and requestParam checks, grouping, nested and collection validation, custom constraints, programmatic validation, fail-fast configuration, and the underlying implementation mechanisms within Spring MVC and Hibernate Validator.

Hibernate ValidatorSpring Bootjava
0 likes · 17 min read
Master Spring Validation: From Simple Use to Advanced Techniques and Internals
Top Architect
Top Architect
Dec 11, 2021 · Backend Development

Proxy vs. Decorator Patterns and DIY Spring AOP Implementation in Java

This article explains the proxy and decorator design patterns using a coffee analogy, provides complete Java code examples for static and dynamic proxies, discusses their differences, and shows how to implement a Spring‑like AOP mechanism with JDK InvocationHandler and cglib, while also warning about their limitations.

DecoratorDynamic ProxyProxy
0 likes · 11 min read
Proxy vs. Decorator Patterns and DIY Spring AOP Implementation in Java
Architect's Tech Stack
Architect's Tech Stack
Dec 10, 2021 · Backend Development

2021 JVM Ecosystem Report Highlights Java Version Adoption, IDE Preferences, Build Tools, and Framework Dominance

The 2021 JVM Ecosystem Report, based on responses from over 2,000 Java developers, reveals a shift from Java 8 to Java 11, widespread use of AdoptOpenJDK and Oracle builds, dominant IDEs like IntelliJ IDEA, Maven as the primary build system, and Spring as the leading framework in the Java ecosystem.

IDEJVMVersion Adoption
0 likes · 4 min read
2021 JVM Ecosystem Report Highlights Java Version Adoption, IDE Preferences, Build Tools, and Framework Dominance
Top Architect
Top Architect
Dec 8, 2021 · Backend Development

Do You Need Interfaces in the Service Layer? A Top Architect’s Perspective

The article examines whether the Service layer in a Spring‑based Java project truly requires interfaces, debunks common justifications, proposes practical development workflows, and outlines project structures for both single and multiple implementations, concluding with recommendations on when to use interfaces.

Service Layerdependency-injectionjava
0 likes · 8 min read
Do You Need Interfaces in the Service Layer? A Top Architect’s Perspective
Selected Java Interview Questions
Selected Java Interview Questions
Dec 4, 2021 · Backend Development

Common Scenarios Where Spring @Transactional Does Not Take Effect

This article explains eight typical situations—such as using non‑transactional storage engines, missing Spring bean registration, non‑public methods, self‑invocation, absent transaction manager, incorrect propagation settings, swallowed exceptions, and wrong exception types—that cause the @Transactional annotation in Spring to appear ineffective, and provides practical solutions for each.

BackendException Handlingdatabase
0 likes · 7 min read
Common Scenarios Where Spring @Transactional Does Not Take Effect
Programmer DD
Programmer DD
Dec 2, 2021 · Backend Development

Explore IntelliJ IDEA 2021.3: Remote Development, Smart Refactoring, and New Spring Support

IntelliJ IDEA 2021.3 introduces a beta remote development mode, enhanced IDE repair tools, convenient font scaling, streamlined Markdown table creation, advanced unsafe string checks, improved refactoring shortcuts, and multiple Spring framework enhancements, all illustrated with screenshots and GIFs for developers.

IDE FeaturesIntelliJ IDEARemote Development
0 likes · 6 min read
Explore IntelliJ IDEA 2021.3: Remote Development, Smart Refactoring, and New Spring Support
Java Architect Essentials
Java Architect Essentials
Nov 30, 2021 · Backend Development

How Spring Solves Circular Dependencies and the Underlying Essence

This article explains Spring's three‑level cache mechanism for breaking circular dependencies in singleton beans, demonstrates a simplified implementation with Java code, draws an analogy to the classic Two‑Sum algorithm, and highlights the core idea behind dependency injection.

Two Sumcircular-dependencydependency-injection
0 likes · 9 min read
How Spring Solves Circular Dependencies and the Underlying Essence
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 29, 2021 · Backend Development

Master Spring’s ObjectFactory & FactoryBean: Real-World Usage

This article explains the differences between Spring’s ObjectFactory and FactoryBean interfaces, demonstrates how they are used internally for bean creation, dependency injection, and servlet API injection, and shows how to customize ObjectFactory behavior to resolve bean conflicts and inject specific implementations.

FactoryBeanObjectFactorybackend-development
0 likes · 9 min read
Master Spring’s ObjectFactory & FactoryBean: Real-World Usage
Architect
Architect
Nov 29, 2021 · Backend Development

Common Scenarios Where Spring Transactions Fail and How to Fix Them

This article explains why Spring's @Transactional annotation can silently fail in many typical situations—such as incorrect method visibility, final methods, self‑invocation, unmanaged beans, multithreading, non‑transactional tables, missing configuration, wrong propagation or rollback settings, nested transaction behavior, and oversized transaction scopes—and provides practical solutions to ensure reliable transaction management.

aopexception-handlingspring
0 likes · 16 min read
Common Scenarios Where Spring Transactions Fail and How to Fix Them
macrozheng
macrozheng
Nov 29, 2021 · Backend Development

Why Constructor Injection Outperforms Field and Setter Injection in Spring

This article explains Spring's three dependency injection methods—field, constructor, and setter—examines why IntelliJ IDEA warns against field injection, and compares them across reliability, maintainability, testability, flexibility, cycle detection, and performance, concluding that constructor injection is generally the preferred approach.

Constructor InjectionField InjectionIDE warnings
0 likes · 7 min read
Why Constructor Injection Outperforms Field and Setter Injection in Spring
Senior Brother's Insights
Senior Brother's Insights
Nov 28, 2021 · Backend Development

Why @Transactional Fails with parallelStream and How to Fix It

An Excel import that partially succeeds reveals a hidden bug where Spring’s @Transactional annotation doesn’t roll back when using Java 8’s parallelStream, and the article explains the underlying thread‑local transaction mechanics, demonstrates the issue with code, and offers practical solutions and best‑practice guidelines.

ParallelStreambugconcurrency
0 likes · 8 min read
Why @Transactional Fails with parallelStream and How to Fix It
Code Ape Tech Column
Code Ape Tech Column
Nov 27, 2021 · Backend Development

A Comprehensive Guide to 10 Practical Scheduling Solutions for Java and Linux

This article reviews ten widely used scheduling methods—from Linux crontab and Java Thread/Timer to Spring Task, Spring Quartz, and distributed frameworks like XXL‑Job and Elastic‑Job—explaining their configuration, code examples, and advantages and disadvantages for various backend scenarios.

Distributed TasksSchedulingcron
0 likes · 22 min read
A Comprehensive Guide to 10 Practical Scheduling Solutions for Java and Linux
Architects Research Society
Architects Research Society
Nov 25, 2021 · Backend Development

Practical Implementation of Domain‑Driven Design with a Loan Processing Sample Application

This article provides a comprehensive, practical guide to applying Domain‑Driven Design (DDD) in enterprise Java projects, covering architectural principles, project management steps, design patterns, code generation, testing, deployment, and a detailed loan‑processing example that demonstrates how to model, implement, and evolve a rich domain model using Spring, DI, AOP, and related technologies.

DDDDomain-Driven Designarchitecture
0 likes · 39 min read
Practical Implementation of Domain‑Driven Design with a Loan Processing Sample Application
Architecture Digest
Architecture Digest
Nov 25, 2021 · Backend Development

Performance Optimization of a Java Backend Service: Reducing CPU Load, Improving Hystrix Circuit Breaking, and Fixing Spring Data Binding Issues

This article details a two‑week effort to diagnose and resolve high CPU usage, server load, Hystrix circuit‑breaker inefficiencies, and Spring data‑binding exceptions in a Java backend service, resulting in doubled QPS capacity, stable circuit breaking under heavy traffic, and significant performance gains.

BackendHystrixJVM
0 likes · 16 min read
Performance Optimization of a Java Backend Service: Reducing CPU Load, Improving Hystrix Circuit Breaking, and Fixing Spring Data Binding Issues
macrozheng
macrozheng
Nov 25, 2021 · Backend Development

Why @Transactional Can Crash Production and How to Prevent Long Transactions

This article recounts a production incident caused by using Spring's @Transactional annotation, explains how long-running transactions exhaust database connections, and provides practical strategies—including method splitting, programmatic transactions, and proper AOP proxy usage—to prevent such failures in backend Java applications.

Long TransactionTransactionaljava
0 likes · 10 min read
Why @Transactional Can Crash Production and How to Prevent Long Transactions
Selected Java Interview Questions
Selected Java Interview Questions
Nov 20, 2021 · Backend Development

Design Pattern Summary in the Spring Framework

This article provides a comprehensive overview of the design patterns used in Spring, including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method, with explanations of their implementation, principles, and practical code examples.

BeanFactoryDesign PatternsFactory Method
0 likes · 13 min read
Design Pattern Summary in the Spring Framework
Programmer DD
Programmer DD
Nov 16, 2021 · Backend Development

Why @Transactional Might Fail in Spring and How to Fix It

This article explains common reasons why Spring's @Transactional annotation can become ineffective—such as self‑invocation, non‑public methods, multiple data sources, incorrect rollback settings, and unsupported database engines—and provides concrete code examples and solutions to ensure proper transaction management.

Backendaopdatabase
0 likes · 7 min read
Why @Transactional Might Fail in Spring and How to Fix It
Top Architect
Top Architect
Nov 14, 2021 · Backend Development

Implementing a Request Logging Aspect with Spring AOP

This article demonstrates how to create a Spring AOP request‑logging aspect that captures request details, parameters, results, execution time, and error information, and discusses enhancements for high‑concurrency environments by aggregating log data into a single JSON object.

Request Loggingaopaspectj
0 likes · 12 min read
Implementing a Request Logging Aspect with Spring AOP
Top Architect
Top Architect
Nov 13, 2021 · Backend Development

Parameter Validation in the Controller Layer Using Hibernate Validator

This article explains how to cleanly perform parameter validation in Java backend applications by placing business‑independent checks in the Controller layer with Hibernate Validator and optional custom annotations, while business‑related checks belong to the Service layer.

ControllerHibernate ValidatorParameter Validation
0 likes · 6 min read
Parameter Validation in the Controller Layer Using Hibernate Validator
Code Ape Tech Column
Code Ape Tech Column
Nov 13, 2021 · Backend Development

Spring Framework Interview Questions and Answers Overview

This article compiles a comprehensive set of Spring interview questions covering design patterns, core modules, IoC, DI, AOP, proxy mechanisms, bean lifecycle, circular dependency resolution, transaction isolation and propagation, as well as Spring Boot auto‑configuration principles, providing concise explanations for each topic.

Design PatternsIoCaop
0 likes · 16 min read
Spring Framework Interview Questions and Answers Overview
Programmer DD
Programmer DD
Nov 12, 2021 · Information Security

Master Spring Authorization Server: Build a Production-Ready OAuth2 Flow

This guide walks you through replacing Spring Security OAuth2.0 with the production-ready Spring Authorization Server, showing how to add OAuth2 client, resource server, and authorization server dependencies, and demonstrating a complete authorization‑code flow demo with detailed request/response examples and configuration snippets.

Authorization ServerOAuth2java
0 likes · 7 min read
Master Spring Authorization Server: Build a Production-Ready OAuth2 Flow
21CTO
21CTO
Nov 9, 2021 · Backend Development

Mastering Elegant Operation Log Design with AOP and SpEL in Java

This article explains how to implement clean, decoupled operation logs in Java applications using AOP, SpEL, custom annotations, and dynamic templates, covering use cases, implementation methods, code examples, parsing logic, context handling, and integration with Spring Boot.

Operation LogSpELaop
0 likes · 27 min read
Mastering Elegant Operation Log Design with AOP and SpEL in Java
dbaplus Community
dbaplus Community
Nov 8, 2021 · Backend Development

How to Elegantly Implement Decoupled Operation Logging with AOP in Spring

This article explains the difference between system and operation logs, presents common log formats, and provides step‑by‑step implementations—including Canal binlog listening, log‑file recording, LogUtil helpers, and a full AOP‑based @LogRecord solution—while detailing template parsing, context handling, custom functions, and persistence in a Spring Boot environment.

CanalLogRecordSpEL
0 likes · 27 min read
How to Elegantly Implement Decoupled Operation Logging with AOP in Spring
Selected Java Interview Questions
Selected Java Interview Questions
Nov 7, 2021 · Backend Development

Do Service and DAO Layers Need Interfaces? When to Omit Them in Spring Projects

This article examines whether Service and DAO layers in Java Spring applications must always have interfaces, explains why dependency‑injection frameworks make interfaces optional, discusses development workflows, multiple‑implementation scenarios, project structuring options, and outlines the trade‑offs of using or not using interfaces.

Interface DesignService Layerbackend-development
0 likes · 9 min read
Do Service and DAO Layers Need Interfaces? When to Omit Them in Spring Projects
Architecture Digest
Architecture Digest
Nov 5, 2021 · Backend Development

Parameter Validation in Spring: Controller vs Service Layer, Hibernate Validator, and Commons‑Lang3

This article explains how to place parameter validation in the appropriate Spring layer, demonstrates using Hibernate Validator and commons‑lang3 for concise validation annotations, provides code examples for entity definitions and controller methods, and mentions creating custom validation annotations when needed.

Commons Lang3ControllerHibernate Validator
0 likes · 6 min read
Parameter Validation in Spring: Controller vs Service Layer, Hibernate Validator, and Commons‑Lang3
macrozheng
macrozheng
Nov 1, 2021 · Backend Development

Design Patterns in Java: Strategy, Chain, Template, Observer & Singleton

This article explores six classic design patterns—Strategy, Chain of Responsibility, Template Method, Observer, Factory, and Singleton—detailing their real‑world business scenarios, core principles, Java implementations with Spring integration, and how they improve code maintainability, extensibility, and adherence to SOLID principles.

SOLIDSoftware Architecturejava
0 likes · 27 min read
Design Patterns in Java: Strategy, Chain, Template, Observer & Singleton
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 1, 2021 · Backend Development

2021 Comprehensive Java Learning Roadmap: From Fundamentals to a Competitive Offer

This guide presents a detailed 2021 Java learning roadmap covering programming fundamentals, JVM internals, concurrency, data structures, algorithms, databases, development tools, backend frameworks, DevOps practices, and interview preparation, with curated resources and a practical study schedule to help learners secure a strong job offer.

AlgorithmsDevOpsJVM
0 likes · 8 min read
2021 Comprehensive Java Learning Roadmap: From Fundamentals to a Competitive Offer
Java Interview Crash Guide
Java Interview Crash Guide
Nov 1, 2021 · Backend Development

How We Doubled Service QPS and Fixed Hystrix Bottlenecks in Two Weeks

In this article we detail a two‑week sprint that identified and eliminated multiple Java backend performance bottlenecks, optimized CPU usage with jtop, re‑engineered Hystrix circuit‑breaker settings, reduced logging overhead, and fixed Spring data‑binding issues, ultimately doubling QPS and stabilizing service recovery.

Hystrixjavaoptimization
0 likes · 16 min read
How We Doubled Service QPS and Fixed Hystrix Bottlenecks in Two Weeks
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 31, 2021 · Backend Development

Comprehensive Guide to Using Spring RestTemplate for HTTP Requests

This article provides a detailed tutorial on Spring's RestTemplate class, covering its overview, setup, and extensive examples of GET, POST, file download, header handling, dynamic URL parameters, and integration with HttpClient and OkHttp, along with complete code snippets and best‑practice recommendations for backend Java development.

APIBackendHTTP
0 likes · 25 min read
Comprehensive Guide to Using Spring RestTemplate for HTTP Requests
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 31, 2021 · Backend Development

Spring Bean Injection Methods: Property, Setter, and Constructor Injection

This article explains Spring's three bean injection approaches—property, setter, and constructor injection—detailing their syntax, advantages, and drawbacks, referencing official Spring documentation to show the evolution from setter to constructor injection and advising developers on best practices.

BackendConstructor InjectionProperty Injection
0 likes · 7 min read
Spring Bean Injection Methods: Property, Setter, and Constructor Injection
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Oct 30, 2021 · Backend Development

Spring Transaction Management: Concepts, Configuration, and Best Practices

This article explains the fundamentals of database transactions, the ACID properties, and how Spring provides both declarative and programmatic transaction support through three core interfaces, detailed configuration examples in XML and Java, and a deep dive into transaction attributes such as isolation, propagation, rollback rules, read‑only mode, and timeout.

BackendDeclarativeProgrammatic
0 likes · 31 min read
Spring Transaction Management: Concepts, Configuration, and Best Practices
Selected Java Interview Questions
Selected Java Interview Questions
Oct 29, 2021 · Backend Development

Differences Between @Autowired, @Resource, and @Inject and Why Field Injection Is Not Recommended in Spring

This article explains the distinctions among Spring's @Autowired, @Resource, and @Inject annotations, describes the IDE warning "Field injection is not recommended", compares field, setter, and constructor injection methods, and provides best‑practice recommendations with code examples.

AutowiredInjectdependency-injection
0 likes · 14 min read
Differences Between @Autowired, @Resource, and @Inject and Why Field Injection Is Not Recommended in Spring
Architect's Tech Stack
Architect's Tech Stack
Oct 29, 2021 · Backend Development

Spring nohttp Project: Blocking HTTP URLs and Enhancing Security

The article introduces Spring’s open‑source nohttp project, which scans, replaces, and blocks HTTP URLs to prevent man‑in‑the‑middle attacks, outlines its modules and usage with an XML configuration example, and also advertises a free Alibaba Cloud server giveaway and a large interview‑question PDF collection.

XMLbackend-developmentjava
0 likes · 4 min read
Spring nohttp Project: Blocking HTTP URLs and Enhancing Security
Architect's Tech Stack
Architect's Tech Stack
Oct 28, 2021 · Backend Development

Commonly Used Spring Annotations – Core, MVC/REST, Boot, Stereotype, Transaction, Scheduling and Testing

This article provides a comprehensive overview of the most frequently used Spring annotations, covering core dependency‑injection annotations, MVC/REST mapping, Spring Boot configuration, stereotype components, transaction management, task scheduling, asynchronous execution, and testing support, with clear code examples for each.

DependencyInjectionMVCannotations
0 likes · 11 min read
Commonly Used Spring Annotations – Core, MVC/REST, Boot, Stereotype, Transaction, Scheduling and Testing
macrozheng
macrozheng
Oct 27, 2021 · Backend Development

Unlock the Full Power of Spring’s @Value: Tips, Tricks, and Common Pitfalls

This article provides a comprehensive guide to Spring’s @Value annotation, covering basic usage, property naming, handling Unicode and encoding issues, default values, static fields, arrays, collections, EL expressions, bean injection, and the differences between ${} and #{} syntax, with practical code examples and solutions to common problems.

@ValueEL Expressionsjava
0 likes · 20 min read
Unlock the Full Power of Spring’s @Value: Tips, Tricks, and Common Pitfalls
Top Architect
Top Architect
Oct 22, 2021 · Backend Development

Understanding AOP: AspectJ, Spring AOP, and CGLIB – A Practical Guide

This article explains the fundamentals of Aspect‑Oriented Programming, introduces AspectJ as a standalone AOP solution, demonstrates how to implement a HelloWorld example with compile‑time weaving, compares it with Spring AOP’s runtime proxies, and shows how CGLIB can be used for proxy generation.

aopaspectjjava
0 likes · 9 min read
Understanding AOP: AspectJ, Spring AOP, and CGLIB – A Practical Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 22, 2021 · Backend Development

Unlock Spring BeanPostProcessor & BeanFactoryPostProcessor for Backend Customization

This article explains how to extend the Spring IoC container using custom BeanPostProcessor, BeanFactoryPostProcessor, and FactoryBean implementations, covering registration methods, ordering, interaction with AOP proxies, and practical code examples for tracing bean creation and externalizing configuration properties.

BeanPostProcessorbackend-developmentdependency-injection
0 likes · 13 min read
Unlock Spring BeanPostProcessor & BeanFactoryPostProcessor for Backend Customization
Java Interview Crash Guide
Java Interview Crash Guide
Oct 20, 2021 · Backend Development

How Spring Implements Classic Design Patterns: From Simple Factory to Template Method

This article explains how Spring’s core container uses classic design patterns—Simple Factory via BeanFactory, Factory Method with FactoryBean, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—illustrated with code snippets and diagrams to show their implementation and purpose within the framework.

BeanFactoryFactory MethodSingleton
0 likes · 15 min read
How Spring Implements Classic Design Patterns: From Simple Factory to Template Method
Java Architect Essentials
Java Architect Essentials
Oct 15, 2021 · Backend Development

Master Spring MVC & Bean Annotations: A Complete Guide

This article provides a comprehensive overview of Spring MVC request‑mapping annotations, core Spring Bean annotations, dependency‑injection and scope configurations, container setup annotations, and essential Spring Boot annotations, each illustrated with clear code examples and usage tips.

Java backendSpring BootSpring MVC
0 likes · 16 min read
Master Spring MVC & Bean Annotations: A Complete Guide