Tagged articles

spring

1810 articles · Page 15 of 19
Java Interview Crash Guide
Java Interview Crash Guide
Apr 28, 2021 · Backend Development

Inside Spring: How Beans Are Instantiated Step by Step

This article explains the two‑phase lifecycle of Spring beans, covering container startup tasks, metadata loading, bean definition registration, and the detailed instantiation process including object creation strategies, BeanWrapper, property injection, Aware interfaces, post‑processors, and custom init/destroy logic.

BeanDependency InjectionIOC
0 likes · 16 min read
Inside Spring: How Beans Are Instantiated Step by Step
Selected Java Interview Questions
Selected Java Interview Questions
Apr 27, 2021 · Backend Development

Understanding the Spring Bean Instantiation Process

This article explains how the Spring IoC container prepares and creates Bean instances, detailing the two main phases—container startup and Bean instantiation—along with the roles of BeanDefinition, BeanFactoryPostProcessor, BeanWrapper, Aware interfaces, BeanPostProcessor, and custom initialization and destruction logic.

BeanDependency InjectionIOC
0 likes · 16 min read
Understanding the Spring Bean Instantiation Process
Programmer DD
Programmer DD
Apr 25, 2021 · Backend Development

Why Spring Dominates Java Development: Insights from the 2020 State of Spring Report

The 2020 State of Spring report reveals that the majority of Java developers favor Spring/Spring Boot, spending more time on unit testing, achieving higher code quality, and appreciating benefits such as easier web/API setup and robust testing support, with user adoption rising from 60% to 86%.

Backend DevelopmentFramework Surveyjava
0 likes · 6 min read
Why Spring Dominates Java Development: Insights from the 2020 State of Spring Report
Top Architect
Top Architect
Apr 20, 2021 · Backend Development

Why @Transactional May Not Work: Common Failure Scenarios and Source‑Code Analysis

This article explains three typical situations in which Spring's @Transactional annotation becomes ineffective—non‑public methods, internal self‑calls, and caught exceptions—illustrates each case with runnable code examples, and dives into the underlying AOP and transaction‑management source code to show why the proxy logic is bypassed.

@TransactionalAOPSpringBoot
0 likes · 12 min read
Why @Transactional May Not Work: Common Failure Scenarios and Source‑Code Analysis
Programmer DD
Programmer DD
Apr 16, 2021 · Backend Development

Demystifying Spring IoC and Dependency Injection: A Clear Guide for Beginners

This article explains the core concepts of Spring's Inversion of Control (IoC) and Dependency Injection (DI), illustrating how a container takes over object creation and wiring, why this reversal improves modularity and testability, and how the two ideas are essentially two views of the same design principle.

Dependency InjectionDesign PatternsIOC
0 likes · 10 min read
Demystifying Spring IoC and Dependency Injection: A Clear Guide for Beginners
Architecture Digest
Architecture Digest
Apr 15, 2021 · Backend Development

Integrating Alipay’s New Transfer Interface with Java Spring Boot

This guide explains how to replace the legacy Alipay transfer API with the new alipay.fund.trans.uni.transfer interface by upgrading the SDK, configuring certificates, adding Maven dependencies, and implementing Spring components and utility classes for secure backend payment processing.

Alipayintegrationjava
0 likes · 8 min read
Integrating Alipay’s New Transfer Interface with Java Spring Boot
Su San Talks Tech
Su San Talks Tech
Apr 10, 2021 · Backend Development

Mastering Java Scheduling: 10 Essential Timers and Distributed Task Solutions

Explore ten practical Java scheduling options—from Linux crontab and JDK Thread/Timer to Spring Task, Quartz, and distributed frameworks like XXL‑Job, Elastic‑Job, Saturn and TBSchedule—detailing setup, code examples, advantages, drawbacks, and best‑fit scenarios for reliable task automation.

DistributedQuartzScheduling
0 likes · 22 min read
Mastering Java Scheduling: 10 Essential Timers and Distributed Task Solutions
Intelligent Backend & Architecture
Intelligent Backend & Architecture
Apr 9, 2021 · Backend Development

Understanding Spring: Core Concepts, IoC, DI, AOP, and Annotations Explained

This article provides a comprehensive overview of the Spring framework, covering its lightweight architecture, core principles such as Inversion of Control and Dependency Injection, AOP mechanisms, design goals, module structure, common design patterns, bean lifecycle, circular dependency handling, and the most frequently used Spring annotations with code examples.

AOPIOCannotations
0 likes · 41 min read
Understanding Spring: Core Concepts, IoC, DI, AOP, and Annotations Explained
Selected Java Interview Questions
Selected Java Interview Questions
Apr 8, 2021 · Backend Development

Common Scenarios Where Spring @Transactional Fails and How to Fix Them

This article outlines common situations that cause Spring @Transactional to fail—such as non‑public methods, internal method calls, unmanaged beans, non‑runtime exceptions, silent catches, incorrect propagation settings, and unsupported MySQL storage engines—and provides practical solutions to ensure transaction reliability.

@TransactionalAOPException
0 likes · 10 min read
Common Scenarios Where Spring @Transactional Fails and How to Fix Them
Java Backend Technology
Java Backend Technology
Apr 8, 2021 · Backend Development

Why Field Injection in Spring Is Discouraged and What to Use Instead

This article explains Spring's warning about field injection, compares constructor, setter, and field injection methods, outlines the drawbacks of field injection, and recommends using constructor or setter injection for safer, more maintainable Java applications.

Constructor InjectionDependency InjectionField Injection
0 likes · 7 min read
Why Field Injection in Spring Is Discouraged and What to Use Instead
Java Interview Crash Guide
Java Interview Crash Guide
Apr 8, 2021 · Backend Development

Why Does @Transactional Fail? Common Pitfalls and Fixes

This article explains the main reasons why Spring's @Transactional annotation may become ineffective—including non‑public method modifiers, internal method calls, and swallowed exceptions—provides code examples, test cases, and a deep dive into the underlying proxy and AOP mechanisms.

@TransactionalAOPexception handling
0 likes · 13 min read
Why Does @Transactional Fail? Common Pitfalls and Fixes
New Oriental Technology
New Oriental Technology
Mar 29, 2021 · Backend Development

Sentinel Flow Control Component: Quick Start, Rules, Annotations, and Internal Mechanisms

This article introduces Alibaba Sentinel, an open‑source flow‑control framework for distributed services, covering Maven integration, dashboard setup, configuration of flow, degrade and hotspot rules, the @SentinelResource annotation, XCloud Sentinel starter usage, and a deep dive into its slot‑chain architecture and sliding‑window algorithm.

Flow ControlHotSpotSentinel
0 likes · 12 min read
Sentinel Flow Control Component: Quick Start, Rules, Annotations, and Internal Mechanisms
Programmer DD
Programmer DD
Mar 26, 2021 · Backend Development

Why MyBatis Returns -2147482646 with BATCH Executor and How to Fix It

The article explains that MyBatis returns the constant -2147482646 when the executor type is set to BATCH, shows how to trace the source code to uncover this behavior, and provides a simple configuration change to restore correct update counts.

Backend DevelopmentBatchExecutorType
0 likes · 5 min read
Why MyBatis Returns -2147482646 with BATCH Executor and How to Fix It
ITPUB
ITPUB
Mar 25, 2021 · Backend Development

Why a TCC Framework Must Own the Spring TransactionManager

This article examines the challenges of building a generic TCC distributed‑transaction framework on Spring, explaining why every TCC service must participate in RM‑local transactions, why the framework should intercept the Spring TransactionManager, how to handle fault recovery, idempotency of Confirm/Cancel, and the pitfalls of relying on Cancel for rollback, concluding with practical recommendations.

TCCTransactionManagerdistributed transactions
0 likes · 18 min read
Why a TCC Framework Must Own the Spring TransactionManager
Top Architect
Top Architect
Mar 22, 2021 · Backend Development

Fundamentals of Spring Transaction Management

This article explains the core principles of Spring transaction management, covering basic JDBC transaction steps, declarative @Transactional usage, AOP proxy mechanisms (JDK dynamic proxy and CGLIB), transaction propagation attributes, isolation levels, nested transactions, and Spring Boot support, with practical code examples.

AOPTransactionbackend
0 likes · 14 min read
Fundamentals of Spring Transaction Management
Java Interview Crash Guide
Java Interview Crash Guide
Mar 22, 2021 · Backend Development

Top 30 Java Interview Questions Every Backend Engineer Should Master

This article compiles 30 essential Java interview questions covering OOP fundamentals, collections, concurrency, JVM internals, Spring framework, and performance optimization, providing concise explanations and key concepts to help backend developers prepare effectively for technical interviews.

Concurrencyinterviewjava
0 likes · 10 min read
Top 30 Java Interview Questions Every Backend Engineer Should Master
Alibaba Cloud Native
Alibaba Cloud Native
Mar 18, 2021 · Backend Development

5 Ways to Integrate Apache RocketMQ into the Spring Ecosystem

This article outlines five Spring-based approaches for using Apache RocketMQ—including Spring Messaging, Spring Cloud Stream, Spring Cloud Bus, Spring Cloud Data Flow, and Spring Cloud Function—detailing each project's features, typical use cases, and how they fit into modern Java microservice architectures.

RocketMQSpring Bootjava
0 likes · 11 min read
5 Ways to Integrate Apache RocketMQ into the Spring Ecosystem
Amap Tech
Amap Tech
Mar 12, 2021 · Backend Development

PowerMock and Mockito: Comprehensive Guide to Java Unit Testing and Mocking Techniques

This comprehensive guide walks Java developers through setting up PowerMock and Mockito, demonstrates creating and spying on mocks, stubbing methods, using parameter matchers, verifying interactions—including static and private members—and explains essential annotations and best‑practice principles for robust, maintainable unit tests.

MockingMockitoPowerMock
0 likes · 24 min read
PowerMock and Mockito: Comprehensive Guide to Java Unit Testing and Mocking Techniques
ZhiKe AI
ZhiKe AI
Mar 11, 2021 · Backend Development

Mastering Spring Expression Language (SpEL): Syntax, Features, and Usage

This article provides a comprehensive overview of Spring Expression Language (SpEL), detailing its supported expression types, case‑insensitive keywords, step‑by‑step usage flow, core interfaces, and concrete code examples for literals, arithmetic, relational, logical, ternary, Elvis, variable handling, and property navigation.

EvaluationContextExpression LanguageParser
0 likes · 11 min read
Mastering Spring Expression Language (SpEL): Syntax, Features, and Usage
Alibaba Cloud Developer
Alibaba Cloud Developer
Mar 10, 2021 · Backend Development

Master PowerMock: Advanced Java Unit Testing Techniques

This article explains how to simplify complex Java code by using PowerMock and Mockito for unit testing, covering environment setup, mock, spy, when, parameter matchers, verification, static method mocking, private field and method handling, and essential annotations with practical code examples.

MockitoPowerMockjava
0 likes · 26 min read
Master PowerMock: Advanced Java Unit Testing Techniques
Architect's Tech Stack
Architect's Tech Stack
Mar 6, 2021 · Information Security

Spring nohttp Project: Scanning and Blocking Insecure HTTP URLs

The Spring nohttp project is an open‑source tool that scans and replaces insecure http:// URLs with HTTPS, preventing man‑in‑the‑middle attacks, updating Maven and documentation links, offering multiple modules and a command‑line interface, and providing example XML configuration for secure classpath resolution.

HTTPSMavennohttp
0 likes · 4 min read
Spring nohttp Project: Scanning and Blocking Insecure HTTP URLs
Xianyu Technology
Xianyu Technology
Mar 4, 2021 · Frontend Development

Solving CORS Issues When Integrating React Frontend with Java Backend

Integrating a React front‑end with a Java back‑end required fixing HTTPS‑to‑HTTP CORS errors by serving the React index.html from the backend, switching @RestController to @Controller for sub‑path routing, adding Thymeleaf, using a Chrome redirect plugin and crossorigin tags, and disabling lazy‑loaded asset URLs during local development, highlighting that true front‑end/back‑end separation remains elusive.

CORSReActThymeleaf
0 likes · 5 min read
Solving CORS Issues When Integrating React Frontend with Java Backend
Java Architect Essentials
Java Architect Essentials
Mar 3, 2021 · Information Security

Seven Open‑Source OAuth and SSO Projects for Developers

This article introduces seven open‑source OAuth/SSO solutions—including oauth2‑shiro, tkey, MaxKey, spring‑lhbauth, oauth2, oauthserver, and JustAuth—detailing their features, supported protocols, and repository links to help developers implement secure authentication and token management in web and mobile applications.

GolangOAuthSSO
0 likes · 5 min read
Seven Open‑Source OAuth and SSO Projects for Developers
Top Architect
Top Architect
Mar 3, 2021 · Backend Development

How Spring Solves Circular Dependencies and the Underlying Essence

This article explains Spring's approach to resolving circular dependencies in singleton beans using a three‑level cache, contrasts it with prototype bean limitations, provides a simplified implementation example, and draws an analogy to the classic two‑sum algorithm to illustrate the core concept.

Dependency InjectionDesign PatternsSingleton
0 likes · 9 min read
How Spring Solves Circular Dependencies and the Underlying Essence
macrozheng
macrozheng
Mar 1, 2021 · Information Security

Build an OAuth2 Authorization Server with Spring Authorization Server 0.1.0

This guide walks you through setting up Spring Authorization Server 0.1.0 on Spring Boot 2.4.2, covering Maven dependencies, bean configurations, token customization, and testing with curl commands for authorization code flow, token issuance, refresh, and revocation.

authorization-serversecurityspring
0 likes · 7 min read
Build an OAuth2 Authorization Server with Spring Authorization Server 0.1.0
Selected Java Interview Questions
Selected Java Interview Questions
Feb 26, 2021 · Backend Development

Understanding IoC: Inversion of Control, Dependency Injection, and Their Benefits

The article explains the core concept of Inversion of Control (IoC), how a third‑party container manages resources to reduce coupling, illustrates the idea with everyday examples, and clarifies the related terms dependency injection and control inversion, especially in the context of Spring.

Backend DevelopmentDependency InjectionIOC
0 likes · 10 min read
Understanding IoC: Inversion of Control, Dependency Injection, and Their Benefits
Programmer DD
Programmer DD
Feb 24, 2021 · Backend Development

Why Field Injection in Spring Is Discouraged and What to Use Instead

The article explains Spring's warning about field injection, compares constructor, setter, and field injection methods with code examples, outlines the drawbacks of field injection such as final‑field incompatibility, hidden dependencies, and tight IOC coupling, and recommends using constructor injection for required beans and setter injection for optional ones.

Backend DevelopmentConstructor InjectionDependency Injection
0 likes · 6 min read
Why Field Injection in Spring Is Discouraged and What to Use Instead
Java Captain
Java Captain
Feb 20, 2021 · Backend Development

Spring Framework Design Patterns: Summary and Implementation Details

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

AdapterBeanFactoryDecorator
0 likes · 15 min read
Spring Framework Design Patterns: Summary and Implementation Details
Architect's Tech Stack
Architect's Tech Stack
Feb 18, 2021 · Backend Development

Summary of Design Patterns Used in the Spring Framework

This article provides a comprehensive overview of how Spring implements classic design patterns such as Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, and Template Method, explaining their implementation details, underlying principles, and practical code examples within the Spring container.

Dependency InjectionDesign PatternsFactory
0 likes · 15 min read
Summary of Design Patterns Used in the Spring Framework
Java Captain
Java Captain
Feb 13, 2021 · Backend Development

How Spring Solves Circular Dependencies and the Underlying Essence

This article explains how Spring resolves circular dependencies in singleton beans using a three‑level cache, contrasts it with prototype beans, provides a minimal reflective implementation, and draws an analogy to the classic two‑sum algorithm to illustrate the core principle.

Dependency InjectionDesign Patternsbackend
0 likes · 9 min read
How Spring Solves Circular Dependencies and the Underlying Essence
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.

Bean InitializationCommandLineRunnerDependency Injection
0 likes · 10 min read
Spring Container Startup Listeners and Initialization Techniques
Bitu Technology
Bitu Technology
Feb 2, 2021 · Backend Development

Recap of the Online Scala Meetup: Reactive Ad Platform, Functional Programming, Scala 3 Typeclasses, and Spring‑Akka Microservices

The 2021 Online Scala Meetup organized by Tubi featured four technical talks covering a fully reactive ad‑serving platform built with Scala and Akka‑Streams, a pragmatic take on functional programming, Scala 3 typeclass implementation, and a Spring‑Akka microservice integration, followed by summaries and recruitment information.

AkkaFunctional ProgrammingReactive Programming
0 likes · 4 min read
Recap of the Online Scala Meetup: Reactive Ad Platform, Functional Programming, Scala 3 Typeclasses, and Spring‑Akka Microservices
Programmer DD
Programmer DD
Feb 1, 2021 · Backend Development

Unlock Spring’s Power: 9 Essential Design Patterns Every Backend Engineer Should Master

This article explores nine key Spring framework design patterns—including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—detailing their implementation, underlying principles, and practical code examples, while highlighting how they enable loose coupling and extensibility in backend development.

Backend DevelopmentDependency InjectionDesign Patterns
0 likes · 15 min read
Unlock Spring’s Power: 9 Essential Design Patterns Every Backend Engineer Should Master
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Jan 30, 2021 · Backend Development

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

This article explains how the Spring framework embodies nine classic design patterns—including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Strategy, Observer, and Template Method—detailing their implementation principles, core code snippets, and the benefits they bring to dependency injection and bean lifecycle management.

javaspring
0 likes · 15 min read
How Spring Implements 9 Classic Design Patterns – From Simple Factory to Template Method
vivo Internet Technology
vivo Internet Technology
Jan 27, 2021 · Backend Development

Caffeine Cache: Principles, High‑Performance Read/Write, and Practical Usage in Java

Caffeine is a high‑performance Java 8 local‑cache library that replaces Guava by using the W‑TinyLFU algorithm with three‑queue LRU structures and lock‑free read/write buffers, offering extensive configuration, dynamic runtime adjustments, and safe back‑source loading with distributed locks to prevent cache‑stampede.

CacheCaffeinePerformance
0 likes · 13 min read
Caffeine Cache: Principles, High‑Performance Read/Write, and Practical Usage in Java
Top Architect
Top Architect
Jan 27, 2021 · Databases

MyBatis Streaming Query (Cursor) – Keeping the Database Connection Open

This article explains what a streaming query is, introduces MyBatis's Cursor interface and its methods, demonstrates common pitfalls such as the cursor being closed prematurely, and provides three practical solutions using SqlSessionFactory, TransactionTemplate, and @Transactional to keep the database connection alive during streaming reads.

Database ConnectionMyBatisStreaming Query
0 likes · 7 min read
MyBatis Streaming Query (Cursor) – Keeping the Database Connection Open
Architecture Digest
Architecture Digest
Jan 26, 2021 · Information Security

API Request Signature Implementation and Best Practices

This article explains how to protect front‑back separated APIs using a request signature scheme, detailing the required parameters, signature generation algorithm, Java filter implementation, anti‑leech timing checks, nonce usage, and duplicate‑submission prevention with Redis.

API SecurityBackend Developmentjava
0 likes · 6 min read
API Request Signature Implementation and Best Practices
Architecture Digest
Architecture Digest
Jan 19, 2021 · Backend Development

Comprehensive Guide to Spring Validation: Best Practices, Scenarios, and Advanced Features

This article provides an in‑depth tutorial on Spring Validation, covering basic usage, dependency configuration, requestBody and requestParam validation, unified exception handling, group and nested validation, collection checks, custom constraints, programmatic validation, fail‑fast mode, and the differences between @Valid and @Validated.

DTOHibernate ValidatorValidation
0 likes · 16 min read
Comprehensive Guide to Spring Validation: Best Practices, Scenarios, and Advanced Features
Top Architect
Top Architect
Jan 17, 2021 · Backend Development

Object Copying in Java: Comparing Apache BeanUtils and Spring BeanUtils

This article explains the concepts of shallow and deep copying in Java, demonstrates how to use Apache BeanUtils and Spring BeanUtils for property copying between objects, compares their implementations and performance, and recommends alternative tools for efficient object mapping.

BeanUtilsDeepCopyObjectCopy
0 likes · 9 min read
Object Copying in Java: Comparing Apache BeanUtils and Spring BeanUtils
Top Architect
Top Architect
Jan 16, 2021 · Backend Development

Designing a Unified API Response Structure with @ResponseResult in Spring Backend

This article explains how to design a unified API response format in a Spring backend by defining a JSON result structure, using standardized status codes, creating a @ResponseResult annotation, and implementing interceptors and ResponseBodyAdvice to automatically wrap controller outputs for cleaner, more maintainable code.

APIAnnotationResponseWrapper
0 likes · 8 min read
Designing a Unified API Response Structure with @ResponseResult in Spring Backend
Top Architect
Top Architect
Jan 14, 2021 · Backend Development

Understanding Spring Transaction Management: Mechanisms, Common Pitfalls, and Best Practices

This article explains how Spring transaction management works, details its declarative and programmatic integration methods, examines core implementation classes and AOP proxies, and highlights frequent pitfalls such as ineffective transactions, rollback failures, and timeout issues, providing code examples and solutions for Java backend developers.

AOPTransaction Managementbackend
0 likes · 21 min read
Understanding Spring Transaction Management: Mechanisms, Common Pitfalls, and Best Practices
Top Architect
Top Architect
Jan 12, 2021 · Backend Development

Introduction to Mock Testing with Spring MVC and MockMvc

This article introduces mock testing for Spring MVC controllers, explains why mocks are useful, describes the main MockMvc components, shows required Maven dependencies, and provides complete example test cases for both view‑returning and JSON‑returning endpoints using JUnit and MockMvc.

JUnitMockMvcUnit Testing
0 likes · 8 min read
Introduction to Mock Testing with Spring MVC and MockMvc
Code Ape Tech Column
Code Ape Tech Column
Jan 12, 2021 · Backend Development

Master MyBatis Streaming Queries: Avoid Cursor Closure Errors with Three Simple Solutions

This article explains the concept of streaming queries in MyBatis, describes the Cursor interface and its methods, demonstrates common pitfalls that cause cursor closure errors, and provides three practical solutions—using SqlSessionFactory, TransactionTemplate, or @Transactional—to keep the database connection open during iteration.

MyBatisStreaming Querybackend
0 likes · 8 min read
Master MyBatis Streaming Queries: Avoid Cursor Closure Errors with Three Simple Solutions
Architect's Tech Stack
Architect's Tech Stack
Jan 11, 2021 · Backend Development

Commonly Used Spring Framework Annotations and Their Usage

This article introduces the most commonly used Spring framework annotations—including core, MVC/REST, Boot, stereotype, data access, scheduling, and testing annotations—explains their purposes, usage scenarios, and provides Java code examples illustrating how to apply them in typical Spring applications.

DependencyInjectionSpringBootannotations
0 likes · 12 min read
Commonly Used Spring Framework Annotations and Their Usage
Architecture Digest
Architecture Digest
Jan 10, 2021 · Backend Development

Designing Unified API Response Wrappers with @ResponseResult in Spring

This article explains how to design a consistent JSON response structure for Spring-based micro‑service APIs, introduces a Result wrapper class, demonstrates annotation‑driven response handling, and shows controller, interceptor, and advice implementations to produce clean, maintainable backend responses.

APIResponseWrapperannotations
0 likes · 6 min read
Designing Unified API Response Wrappers with @ResponseResult in Spring
Java Captain
Java Captain
Jan 9, 2021 · Backend Development

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

This article examines whether Service and DAO layers in Java Spring projects should always have interfaces, discusses the arguments for and against using interfaces, and proposes practical structuring and dependency‑injection techniques to decide when interfaces are truly necessary.

Dependency Injectiondaointerface
0 likes · 8 min read
Do Service and DAO Layers Need Interfaces? When to Use Them in Spring Projects
Architect's Tech Stack
Architect's Tech Stack
Jan 8, 2021 · Backend Development

Comprehensive Guide to Spring Kafka: Integration, Advanced Features, and Usage

This article provides a detailed tutorial on integrating Kafka with Spring using Spring‑Kafka, covering simple setup, embedded Kafka testing, topic creation, message sending and receiving, transaction support, listener configurations, manual acknowledgment, error handling, retry and dead‑letter queues, and related code examples.

KafkaSpring Kafkamessaging
0 likes · 21 min read
Comprehensive Guide to Spring Kafka: Integration, Advanced Features, and Usage
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jan 7, 2021 · Backend Development

Overview of Spring Core Components, IOC, AOP, and Related Technologies

This article provides a comprehensive guide to the Spring framework, covering its core modules, the concepts of Inversion of Control and Aspect‑Oriented Programming, various container implementations, proxy mechanisms, bean lifecycle, design patterns, MVC architecture, Spring Boot, Spring Cloud, and common annotations for Java backend development.

AOPDependency Injectionbackend
0 likes · 31 min read
Overview of Spring Core Components, IOC, AOP, and Related Technologies
Code Ape Tech Column
Code Ape Tech Column
Jan 7, 2021 · Backend Development

How Spring Solves Circular Dependencies: Inside the Three‑Cache Mechanism

This article explains how Spring resolves circular dependencies for singleton beans using a three‑level cache, contrasts it with prototype limitations, provides a minimal container implementation that mimics the mechanism, and draws an analogy to the classic two‑sum algorithm to illustrate the core caching principle.

Dependency InjectionThree CacheTwo Sum
0 likes · 11 min read
How Spring Solves Circular Dependencies: Inside the Three‑Cache Mechanism
Su San Talks Tech
Su San Talks Tech
Jan 3, 2021 · Backend Development

Eliminate Long if‑else Chains in Java: Design Patterns & Spring Solutions

This article examines the drawbacks of lengthy if‑else statements in Java payment services, explains how they violate the Open/Closed and Single Responsibility principles, and presents multiple refactoring techniques—including custom annotations, dynamic bean naming, template methods, strategy‑factory, and chain‑of‑responsibility patterns—to produce cleaner, more maintainable backend code.

Strategyif-elsespring
0 likes · 17 min read
Eliminate Long if‑else Chains in Java: Design Patterns & Spring Solutions
Programmer DD
Programmer DD
Jan 3, 2021 · Backend Development

Why Spring Ecosystem Dominates Java: Surprising Top200 Rankings Unveiled

An in‑depth look at the latest Java Top‑200 project rankings reveals Spring’s ecosystem as the de‑facto standard, while contrasting tools such as Gradle versus Maven, Kafka versus Pulsar, Spring Security versus Shiro, and many others, highlighting performance, adoption and community strength across the backend landscape.

Rankingbackendframeworks
0 likes · 4 min read
Why Spring Ecosystem Dominates Java: Surprising Top200 Rankings Unveiled
Java Backend Technology
Java Backend Technology
Dec 27, 2020 · Backend Development

Do You Really Need Interfaces for Service and DAO Layers in Spring?

This article examines whether Service and DAO layers in Spring projects truly require interfaces, debunks common justifications, explores alternative project structures for single and multiple implementations, and offers practical guidelines on when to use or omit interfaces.

Dependency Injectiondaointerface design
0 likes · 8 min read
Do You Really Need Interfaces for Service and DAO Layers in Spring?
21CTO
21CTO
Dec 24, 2020 · Backend Development

Why Java Isn’t Dead: A Developer’s Take on Spring, Microservices, and KISS

The author reflects on returning to Java after three years, arguing that despite the rise of containers and micro‑services, Java’s performance, threading model, and mature ecosystem keep it relevant, while criticizing Spring’s complexity and advocating a simple, KISS‑driven approach.

ContainersKISSjava
0 likes · 8 min read
Why Java Isn’t Dead: A Developer’s Take on Spring, Microservices, and KISS
Senior Brother's Insights
Senior Brother's Insights
Dec 24, 2020 · Backend Development

Spring Filter vs Interceptor: When to Use Each in Java Web Apps

This guide explains the concepts, implementation steps, configuration examples, and key differences between Servlet Filters and Spring MVC Interceptors, helping developers choose the right tool for request preprocessing, logging, and access control in Java web applications.

Backend Developmentfilterinterceptor
0 likes · 12 min read
Spring Filter vs Interceptor: When to Use Each in Java Web Apps
Architecture Digest
Architecture Digest
Dec 21, 2020 · Backend Development

Do You Need an Interface for the Service Layer? A Critical Examination

This article examines whether a Service layer in a Spring‑based backend project truly requires an interface, debunks common justifications, proposes practical development workflows, and outlines the advantages and drawbacks of using or omitting interfaces in various architectural scenarios.

Dependency Injectionbackend-architectureinterface
0 likes · 8 min read
Do You Need an Interface for the Service Layer? A Critical Examination
Selected Java Interview Questions
Selected Java Interview Questions
Dec 11, 2020 · Databases

Implementing MyBatis Streaming Queries in Spring: Concepts, API, and Three Practical Solutions

This article explains the concept of streaming queries, introduces MyBatis's Cursor interface, demonstrates how to use it in Spring MVC controllers, and provides three concrete solutions—using SqlSessionFactory, TransactionTemplate, and @Transactional—to keep the database connection open and avoid cursor‑closed errors.

DatabaseMyBatisStreaming Query
0 likes · 7 min read
Implementing MyBatis Streaming Queries in Spring: Concepts, API, and Three Practical Solutions
Top Architect
Top Architect
Dec 8, 2020 · Backend Development

Understanding Thread Safety of Spring Beans: Singleton vs Prototype Scope

This article explains why Spring beans are not inherently thread‑safe, compares the singleton and prototype scopes, shows how stateless beans can be safe, demonstrates the impact of static fields and injected beans, and provides practical code examples and recommendations for achieving thread safety in Spring applications.

BeanPrototypeScope
0 likes · 11 min read
Understanding Thread Safety of Spring Beans: Singleton vs Prototype Scope
Code Ape Tech Column
Code Ape Tech Column
Dec 7, 2020 · Backend Development

Unlock Spring’s Power: 9 Design Patterns Every Java Developer Should Master

This article explores nine core design patterns implemented in Spring—simple factory, factory method, singleton, adapter, decorator, proxy, observer, strategy, and template method—detailing their implementation mechanisms, underlying principles, code examples, and practical significance for building loosely coupled, extensible Java applications.

AOPBackend DevelopmentDependency Injection
0 likes · 16 min read
Unlock Spring’s Power: 9 Design Patterns Every Java Developer Should Master
Architect
Architect
Dec 6, 2020 · Backend Development

Do Service Layers Need Interfaces? A Critical Discussion on Spring‑Based Projects

This article examines whether a Service layer in a Spring‑based application truly requires an interface, analyzes common arguments for and against using interfaces, explores project structuring options, and offers practical recommendations based on real‑world development experience.

AOPDependency Injectionarchitecture
0 likes · 7 min read
Do Service Layers Need Interfaces? A Critical Discussion on Spring‑Based Projects
Programmer DD
Programmer DD
Dec 5, 2020 · Backend Development

Mastering Spring Retry: Deep Dive into Retry and Back‑off Strategies

This article explains Spring Retry's architecture, how @EnableRetry, @Retryable, @Backoff and @Recover work together, details the available retry and back‑off policies, and walks through the core implementation using RetryTemplate and interceptors to provide flexible, AOP‑based retry handling in Java backend applications.

AOPBackoffRetryPolicy
0 likes · 20 min read
Mastering Spring Retry: Deep Dive into Retry and Back‑off Strategies
Top Architect
Top Architect
Nov 30, 2020 · Backend Development

Understanding AOP in Spring: Concepts, Annotations, and Practical Examples

This article explains the fundamentals of Aspect‑Oriented Programming (AOP) in Spring, describes its core concepts and terminology, and provides step‑by‑step code examples for creating pointcuts, advices, and custom annotations, while also detailing the use of common AOP annotations such as @Pointcut, @Around, @Before, @After, @AfterReturning and @AfterThrowing.

AOPaspect-oriented-programmingjava
0 likes · 19 min read
Understanding AOP in Spring: Concepts, Annotations, and Practical Examples
Su San Talks Tech
Su San Talks Tech
Nov 30, 2020 · Backend Development

How to Tame Large Transactions in Spring: 6 Proven Strategies

This article shares practical techniques for handling large transactions in Spring-based backend systems, covering why @Transactional can cause issues, how to use programmatic transactions, move queries outside transactions, avoid remote calls, limit data volume, execute non‑transactional operations, and leverage asynchronous processing.

Declarative TransactionLarge TransactionsProgrammatic Transaction
0 likes · 10 min read
How to Tame Large Transactions in Spring: 6 Proven Strategies
Architecture Digest
Architecture Digest
Nov 28, 2020 · Databases

How to Perform Streaming Queries with MyBatis Cursor and Keep the Database Connection Open

This article explains the concept of streaming queries in MyBatis, introduces the Cursor interface, demonstrates common pitfalls with connection closure, and provides three practical solutions—using SqlSessionFactory, TransactionTemplate, or @Transactional—to safely retrieve large result sets without exhausting memory.

DatabaseMyBatisStreaming Query
0 likes · 7 min read
How to Perform Streaming Queries with MyBatis Cursor and Keep the Database Connection Open
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 27, 2020 · Backend Development

Understanding Transaction Isolation Levels and Propagation Behaviors in Spring

This article explains how to configure Spring transaction isolation levels and propagation behaviors, illustrates the effects of dirty read, non‑repeatable read, and phantom read with examples, and provides practical code solutions for handling rollback of failed sub‑tasks and self‑invocation issues.

Transactionbackendisolation-level
0 likes · 9 min read
Understanding Transaction Isolation Levels and Propagation Behaviors in Spring
Top Architect
Top Architect
Nov 25, 2020 · Databases

Understanding MyBatis Transaction Mechanisms and JDBC Transaction Behavior

This article explains the real JDBC transaction methods, clarifies common misconceptions about transaction states in MyBatis, details the MyBatis Transaction and TransactionFactory interfaces, and explores special scenarios such as auto‑commit false, missing commit or close, with concrete code examples.

DatabaseJDBCMyBatis
0 likes · 10 min read
Understanding MyBatis Transaction Mechanisms and JDBC Transaction Behavior
Top Architect
Top Architect
Nov 22, 2020 · Backend Development

Spring vs Spring Boot: Core Differences, Configuration, and Deployment Guide

This article compares Spring and Spring Boot, explaining their fundamental concepts, Maven dependencies, MVC and security configurations, template engine setup, startup mechanisms, and packaging options, while providing practical code examples to help Java developers choose and migrate between the two frameworks.

MavenSpringBootconfiguration
0 likes · 12 min read
Spring vs Spring Boot: Core Differences, Configuration, and Deployment Guide
JavaEdge
JavaEdge
Nov 20, 2020 · Backend Development

Why Java Annotations Don't Inherit to Subclass Methods and How to Work Around It

This article explains the limits of annotation inheritance in Java, demonstrates why subclass methods cannot automatically inherit parent annotations, and shows how to use @Inherited, Spring's AnnotatedElementUtils, and find/get semantics to retrieve inherited annotations effectively.

@InheritedAnnotatedElementUtilsannotations
0 likes · 6 min read
Why Java Annotations Don't Inherit to Subclass Methods and How to Work Around It
Java Backend Technology
Java Backend Technology
Nov 19, 2020 · Backend Development

Why Long Database Transactions Crash Services and How to Prevent Them

The article explains how long‑running database transactions can exhaust connection pools, block threads, and cause widespread service failures, then offers practical strategies—including keeping transactions short, removing RPC calls, enhancing monitoring, and reviewing code—to detect and prevent these high‑risk issues.

Backend PerformanceMonitoringdatabase-connection-pool
0 likes · 7 min read
Why Long Database Transactions Crash Services and How to Prevent Them
IT Xianyu
IT Xianyu
Nov 18, 2020 · Backend Development

Understanding Spring Framework: Core Concepts, Advantages, and Bean Management

This article provides a comprehensive overview of the Spring framework, explaining its IoC and AOP core, architectural layers, key advantages such as decoupling and declarative transactions, bean scopes, lifecycle settings, and practical object‑creation methods for Java backend development.

Bean ScopeIOCbackend
0 likes · 7 min read
Understanding Spring Framework: Core Concepts, Advantages, and Bean Management
Programmer DD
Programmer DD
Nov 11, 2020 · Backend Development

BeanFactory vs ApplicationContext: When to Choose Each in Spring

Spring provides two IoC containers—BeanFactory and ApplicationContext—each with distinct loading strategies, features, and registration behaviors; this article demonstrates their differences through practical code examples, highlighting lazy versus eager loading, automatic post‑processor registration, and why ApplicationContext is generally preferred for enterprise applications.

ApplicationContextBeanFactoryDependency Injection
0 likes · 9 min read
BeanFactory vs ApplicationContext: When to Choose Each in Spring
Xianyu Technology
Xianyu Technology
Nov 5, 2020 · Backend Development

Accelerating Build, Deployment, and Startup for Java Backend Applications

By profiling the idle‑local Java backend, the author cut build, deployment, and startup times by over 30 seconds per cycle through asynchronous Spring bean initialization, selective dependency pruning, layered Docker image construction, and streamlined shutdown, demonstrating a comprehensive, reusable optimization strategy for faster releases.

Build OptimizationCI/CDDocker
0 likes · 13 min read
Accelerating Build, Deployment, and Startup for Java Backend Applications
Top Architect
Top Architect
Nov 3, 2020 · Backend Development

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

This article examines whether every Service and DAO class in a Spring‑based backend should implement an interface, evaluates the common arguments for using interfaces, explains why they often do not hold up, and proposes practical structuring and development approaches for projects that may or may not need multiple implementations.

Dependency Injectiondaointerface
0 likes · 9 min read
Do Service and DAO Layers Need Interfaces? When to Use Them in Spring Projects