Tagged articles

spring

1810 articles · Page 11 of 19
Architect's Guide
Architect's Guide
Oct 15, 2022 · Information Security

Understanding Session Mechanisms, Cluster Session Challenges, and SSO Solutions with a CAS Implementation

This article explains traditional HTTP session handling, the problems of session sharing in clustered and multi‑service environments, and presents practical SSO solutions—including session replication, centralized Redis storage, and a complete CAS‑based single sign‑on implementation with Java code examples.

CASJavaRedis
0 likes · 14 min read
Understanding Session Mechanisms, Cluster Session Challenges, and SSO Solutions with a CAS Implementation
Top Architect
Top Architect
Oct 14, 2022 · Backend Development

Spring Annotation Development and MyBatis Integration Guide

This article provides a comprehensive tutorial on using Spring annotations for pure annotation‑based development, defining beans, managing bean scopes, performing various injection techniques, reading configuration properties, and integrating Spring with MyBatis, complete with code examples and best‑practice tips.

Backend DevelopmentDependency InjectionJava
0 likes · 10 min read
Spring Annotation Development and MyBatis Integration Guide
Java Backend Technology
Java Backend Technology
Oct 10, 2022 · Backend Development

8 Hidden Spring Transaction Pitfalls That Can Break Your Java Apps

This article reveals ten common Spring transaction pitfalls—including private methods, final modifiers, self‑invocation, missing @Service, wrong propagation, non‑transactional databases, swallowed or wrong exceptions, multi‑threaded calls, and nested transaction rollbacks—that can silently disable transaction management in Java backend projects.

AOPJavaTransaction
0 likes · 9 min read
8 Hidden Spring Transaction Pitfalls That Can Break Your Java Apps
macrozheng
macrozheng
Oct 10, 2022 · Backend Development

Unlock Spring’s Power: 11 Essential Extension Points You Must Master

This article walks through the eleven most commonly used Spring extension points—including custom interceptors, bean retrieval methods, global exception handling, type converters, import configurations, startup runners, bean definition tweaks, post‑processing, initialization and destruction callbacks, and custom scopes—providing clear explanations and code samples for each.

IOCJavaextension-points
0 likes · 16 min read
Unlock Spring’s Power: 11 Essential Extension Points You Must Master
Selected Java Interview Questions
Selected Java Interview Questions
Oct 9, 2022 · Backend Development

Various Ways to Register Beans in the Spring IoC Container

This article explains six common techniques for adding beans to the Spring IoC container, including @Configuration with @Bean, @Component with @ComponentScan, various @Import approaches, FactoryBean, and BeanDefinitionRegistryPostProcessor, providing code examples and usage details for each method.

BeanDependency Injectionconfiguration
0 likes · 9 min read
Various Ways to Register Beans in the Spring IoC Container
Su San Talks Tech
Su San Talks Tech
Oct 4, 2022 · Backend Development

11 Must‑Know Spring Extension Points to Supercharge Your Java Backend

Explore the 11 most commonly used Spring extension points—from custom interceptors and bean factories to global exception handling, type converters, import mechanisms, startup runners, bean lifecycle processors, and custom scopes—complete with clear code examples and practical guidance for enhancing Java backend applications.

BackendBeanJava
0 likes · 11 min read
11 Must‑Know Spring Extension Points to Supercharge Your Java Backend
Java Architect Essentials
Java Architect Essentials
Sep 30, 2022 · Backend Development

Comprehensive Guide to Spring Annotation Development and MyBatis Integration

This article provides a step‑by‑step tutorial on using Spring annotations for bean definition, component scanning, scope management, autowiring, qualifier usage, simple value injection, property file loading, and finally demonstrates how to integrate Spring with MyBatis for streamlined data access in Java backend projects.

Dependency InjectionMyBatisannotations
0 likes · 9 min read
Comprehensive Guide to Spring Annotation Development and MyBatis Integration
IT Services Circle
IT Services Circle
Sep 20, 2022 · Backend Development

Understanding the Spring Bean Lifecycle: From Instantiation to Destruction

This article explains the complete Spring Bean lifecycle—including IoC fundamentals, bean creation, property injection, initialization callbacks, custom init/destroy methods, and post‑processor hooks—by walking through detailed source‑code examples and step‑by‑step execution traces for a sample bean.

Bean LifecycleDependency InjectionIOC
0 likes · 10 min read
Understanding the Spring Bean Lifecycle: From Instantiation to Destruction
DaTaobao Tech
DaTaobao Tech
Sep 16, 2022 · Databases

Investigation of Hanging Transactions and Lock Wait Timeout in MySQL InnoDB

The article investigates MySQL InnoDB lock‑wait timeouts caused by hanging transactions that lack proper commit or rollback, explains ACID and lock mechanisms, shows how stale ThreadLocal bindings let pooled threads reuse unfinished transactions, and recommends using @Transactional with robust try‑catch handling to prevent such deadlocks.

HangingTransactionInnoDBLock
0 likes · 14 min read
Investigation of Hanging Transactions and Lock Wait Timeout in MySQL InnoDB
Code Ape Tech Column
Code Ape Tech Column
Sep 16, 2022 · Backend Development

Ensuring Thread Safety for Spring Singleton Beans: Problems and Solutions

This article explains why Spring singleton beans can be unsafe in concurrent scenarios, demonstrates the issue with a controller example, and presents multiple solutions including changing bean scope, using ThreadLocal, avoiding member variables, employing concurrent collections, and leveraging distributed caches.

BackendBean ScopeSingleton
0 likes · 8 min read
Ensuring Thread Safety for Spring Singleton Beans: Problems and Solutions
Selected Java Interview Questions
Selected Java Interview Questions
Sep 15, 2022 · Fundamentals

Applying the Strategy Pattern in Java with Spring Integration

This article explains the Strategy design pattern in Java, demonstrates its integration with Spring using custom annotations, enums, and a context manager, provides complete code examples, discusses its advantages over traditional conditional logic, and shows how to easily add new strategies.

Design PatternsStrategy Patternspring
0 likes · 13 min read
Applying the Strategy Pattern in Java with Spring Integration
macrozheng
macrozheng
Sep 15, 2022 · Backend Development

When to Use @Autowired vs @Resource in Spring? 5 Key Differences Explained

This article compares Spring’s @Autowired and Java’s @Resource annotations, detailing five key differences—including their origins, lookup order, supported parameters, injection styles, and IDE warnings—while providing code examples and diagrams to help developers choose the appropriate annotation.

Dependency InjectionJavaannotations
0 likes · 9 min read
When to Use @Autowired vs @Resource in Spring? 5 Key Differences Explained
Code Ape Tech Column
Code Ape Tech Column
Sep 10, 2022 · Backend Development

Differences Between @Autowired and @Resource in Spring Dependency Injection

This article explains why IntelliJ IDEA warns about @Autowired field injection but not @Resource, compares the two annotations, outlines Spring's common DI methods, discusses the pros and cons of constructor, setter, and field injection, and provides guidance on choosing the appropriate approach.

AutowiredDependency InjectionJava
0 likes · 7 min read
Differences Between @Autowired and @Resource in Spring Dependency Injection
Java Backend Technology
Java Backend Technology
Sep 9, 2022 · Backend Development

How to Refactor Spring Controllers for Clean, Unified Responses

This article explains how to improve Spring MVC controller logic by separating responsibilities, introducing a unified response structure, handling String return types with ResponseBodyAdvice, applying JSR‑303 validation, creating custom validators, and using custom exceptions with global exception handling to produce concise and maintainable backend code.

ControllerExceptionHandlingJava
0 likes · 18 min read
How to Refactor Spring Controllers for Clean, Unified Responses
Top Architect
Top Architect
Sep 8, 2022 · Backend Development

Commonly Used Spring Framework Annotations Explained

This article provides a comprehensive overview of the most frequently used Spring and Spring Boot annotations, explaining their purposes, usage scenarios, and includes practical Java code examples for core, MVC/REST, stereotype, data access, scheduling, asynchronous, and testing annotations.

DependencyInjectionJavaannotations
0 likes · 13 min read
Commonly Used Spring Framework Annotations Explained
IT Architects Alliance
IT Architects Alliance
Sep 7, 2022 · Backend Development

Improving Spring MVC Controller Logic: Unified Response, Validation, and Exception Handling

This article explains how to refactor Spring MVC controller code by introducing a unified response structure, handling String response issues with ResponseBodyAdvice, applying JSR‑303 validation, creating custom validation annotations, and implementing custom exceptions with global exception handling to produce cleaner, more maintainable backend services.

ControllerExceptionHandlingJava
0 likes · 18 min read
Improving Spring MVC Controller Logic: Unified Response, Validation, and Exception Handling
Java Captain
Java Captain
Sep 7, 2022 · Backend Development

Understanding Spring Core Concepts and Building a Minimal Servlet‑Based Framework

This article explains Spring's core features such as IoC, DI, and AOP, demonstrates a simple Hello World application with Spring Boot, then shows how to implement the same functionality using raw Servlets and a handcrafted mini‑Spring framework, complete with code examples and deployment steps.

Dependency InjectionIOCJava
0 likes · 23 min read
Understanding Spring Core Concepts and Building a Minimal Servlet‑Based Framework
Top Architect
Top Architect
Sep 7, 2022 · Backend Development

Understanding @Transactional Rollback Behavior in Spring: When Exceptions Trigger Rollback

This article demonstrates how Spring's @Transactional annotation rolls back only for RuntimeException subclasses, explains why checked exceptions like Exception do not trigger rollback by default, and shows how to configure rollbackFor to handle custom exceptions, illustrated with SQL updates and Java code examples.

ExceptionHandlingJavaRollback
0 likes · 5 min read
Understanding @Transactional Rollback Behavior in Spring: When Exceptions Trigger Rollback
Su San Talks Tech
Su San Talks Tech
Sep 7, 2022 · Backend Development

Demystifying Spring Bean Lifecycle: From Creation to Destruction

This article explains the Spring Bean lifecycle in depth, covering IoC fundamentals, each lifecycle stage, extension points such as Aware interfaces and BeanPostProcessor, and provides a step‑by‑step code walkthrough that maps the execution flow from bean creation to destruction.

BackendBean LifecycleDependency Injection
0 likes · 12 min read
Demystifying Spring Bean Lifecycle: From Creation to Destruction
Java Architect Essentials
Java Architect Essentials
Sep 4, 2022 · Backend Development

Mastering Code Timing in Java: Spring and Apache StopWatch Deep Dive

This article explains why manual timestamp logging is cumbersome, introduces Spring's org.springframework.util.StopWatch and Apache Commons Lang's StopWatch, provides Maven dependencies, detailed usage examples, key methods, and important cautions for accurate performance measurement in Java applications.

Apache CommonsBackend DevelopmentCode Timing
0 likes · 11 min read
Mastering Code Timing in Java: Spring and Apache StopWatch Deep Dive
Java Backend Technology
Java Backend Technology
Sep 3, 2022 · Backend Development

Mastering Java Scheduling: 10 Powerful Ways to Automate Your Tasks

This comprehensive guide explores ten practical Java scheduling techniques—from Linux crontab and JDK Thread/Timer to Spring Task, Quartz, and distributed solutions like XXL‑Job and Elastic‑Job—detailing their usage, code examples, advantages, and drawbacks for robust backend automation.

JavaSchedulingcron
0 likes · 21 min read
Mastering Java Scheduling: 10 Powerful Ways to Automate Your Tasks
Top Architect
Top Architect
Aug 29, 2022 · Backend Development

Ways to Register Beans into the Spring Container

This article explains various methods to add beans to the Spring IoC container, including @Configuration with @Bean, component scanning, @Import with selectors or registrars, FactoryBean usage, and BeanDefinitionRegistryPostProcessor, providing code examples and detailed explanations for each approach.

Bean RegistrationDependency InjectionIOC
0 likes · 9 min read
Ways to Register Beans into the Spring Container
Java Backend Technology
Java Backend Technology
Aug 29, 2022 · Backend Development

Master Java SPI: From JDK to Dubbo & Spring – Extend Your Apps Easily

This article explains the concept and usage of Service Provider Interface (SPI) in Java, demonstrating how JDK’s ServiceLoader, Dubbo’s enhanced SPI, and Spring’s SPI mechanisms enable flexible extension of logging frameworks and other components, while comparing their features, configuration files, and limitations.

DubboJavaSPI
0 likes · 14 min read
Master Java SPI: From JDK to Dubbo & Spring – Extend Your Apps Easily
Top Architect
Top Architect
Aug 28, 2022 · Backend Development

Spring Boot Parameter Validation with javax.validation and Custom Annotations

This tutorial demonstrates how to replace verbose manual checks in Java services with Spring's javax.validation annotation‑based validation, covering built‑in constraints, Maven setup, DTO annotations, validation groups, custom validators, and a global exception handler for unified error responses.

ExceptionHandlingJavaValidation
0 likes · 13 min read
Spring Boot Parameter Validation with javax.validation and Custom Annotations
Top Architect
Top Architect
Aug 25, 2022 · Backend Development

Building a Custom RPC Spring Starter: Architecture, Principles, and Code Walkthrough

This article explains the fundamentals of remote procedure call (RPC), presents a complete system architecture diagram, and provides a step‑by‑step implementation of a custom rpc‑spring‑starter using Java, Spring, Zookeeper for service registration, Netty for network communication, and dynamic proxy techniques for client‑side invocation.

Dynamic ProxyJavaNetty
0 likes · 18 min read
Building a Custom RPC Spring Starter: Architecture, Principles, and Code Walkthrough
Code Ape Tech Column
Code Ape Tech Column
Aug 25, 2022 · Backend Development

Using Guava‑Retrying for Flexible Retry Strategies in Java

This article introduces the Guava‑Retrying library for Java, explains how to add its Maven dependency, demonstrates building a Retryer with customizable retry conditions, stop strategies, wait strategies, and listeners, and provides detailed code examples illustrating each component.

Backend DevelopmentGuava-RetryingJava
0 likes · 14 min read
Using Guava‑Retrying for Flexible Retry Strategies in Java
Su San Talks Tech
Su San Talks Tech
Aug 25, 2022 · Backend Development

Mastering Spring Transactions: From Basics to Advanced Propagation Types

This article explains the origins and purpose of Spring transactions, demonstrates how to quickly set them up with code examples, explores key features and common pitfalls, and provides an in‑depth comparison of the REQUIRED, REQUIRES_NEW, and NESTED propagation types for robust backend development.

AOPBackendJava
0 likes · 21 min read
Mastering Spring Transactions: From Basics to Advanced Propagation Types
Cognitive Technology Team
Cognitive Technology Team
Aug 20, 2022 · Backend Development

Common Pitfalls of Spring Transaction Management and How to Avoid Them

This article explains common pitfalls of Spring's transaction management—including AOP proxy limitations, unchecked exception handling, self‑invocation, asynchronous execution, multiple data sources, and large transaction issues—and provides practical solutions such as using class‑based proxies, configuring rollback rules, and splitting transactions into smaller units.

AOPBackend DevelopmentDatabase
0 likes · 6 min read
Common Pitfalls of Spring Transaction Management and How to Avoid Them
Programmer DD
Programmer DD
Aug 18, 2022 · Backend Development

How to Build a Clean, Robust Spring Controller Layer with Unified Responses and Validation

This article explains why the Controller layer is essential, identifies common pitfalls such as tangled validation and inconsistent responses, and demonstrates how to refactor Spring MVC controllers using a unified Result wrapper, ResponseBodyAdvice, proper String handling, JSR‑303 validation, custom validators, and global exception handling to produce clean, maintainable backend code.

BackendControllerResponseBodyAdvice
0 likes · 21 min read
How to Build a Clean, Robust Spring Controller Layer with Unified Responses and Validation
Top Architect
Top Architect
Aug 17, 2022 · Backend Development

Using Spring Application Events for Synchronous and Asynchronous Business Logic

This article demonstrates how to leverage Spring's ApplicationEvent mechanism to decouple business logic, showing both synchronous and asynchronous event publishing, custom event definitions, listener implementations, unit testing, and enabling async processing with @EnableAsync and @Async annotations.

ApplicationEventJavaasync
0 likes · 9 min read
Using Spring Application Events for Synchronous and Asynchronous Business Logic
Architecture & Thinking
Architecture & Thinking
Aug 16, 2022 · Backend Development

Unveiling Spring AOP: A Deep Dive into Source Code and Proxy Mechanics

This article provides a comprehensive analysis of Spring AOP, covering its core concepts, configuration parsing, BeanFactoryPostProcessor and BeanPostProcessor mechanisms, namespace handling, the creation of advisors and advice from @Aspect annotations, and the proxy generation process that enables method interception.

AOPAspectJBackend Development
0 likes · 32 min read
Unveiling Spring AOP: A Deep Dive into Source Code and Proxy Mechanics
Selected Java Interview Questions
Selected Java Interview Questions
Aug 16, 2022 · Backend Development

Spring Framework Design Patterns Overview

This article explains how Spring implements various design patterns—including Simple Factory, Factory Method, Singleton, Adapter, Decorator, Proxy, Observer, Strategy, and Template Method—detailing their implementation approaches, underlying principles, and practical code examples within the Spring container.

AOPBackend DevelopmentDependency Injection
0 likes · 13 min read
Spring Framework Design Patterns Overview
Java Backend Technology
Java Backend Technology
Aug 16, 2022 · Backend Development

Mastering Spring @Transactional: Propagation, Rollback, and Proxy Pitfalls

This article explains Spring’s transaction propagation behaviors, rollback mechanisms, common pitfalls such as self‑invocation and non‑public methods, and demonstrates how to correctly use @Transactional with AOP proxies, including practical code examples and solutions for ensuring transaction consistency.

@TransactionalAOPJava
0 likes · 9 min read
Mastering Spring @Transactional: Propagation, Rollback, and Proxy Pitfalls
Java Baker
Java Baker
Aug 13, 2022 · Fundamentals

Unlock Java’s Power: Mastering Reflection for Dynamic Code

This article explains Java reflection’s core concepts, how the JVM dynamically loads Class objects, and provides practical examples—including field retrieval, caching strategies, and integration with Spring—to help developers harness reflection for dynamic code manipulation while avoiding common pitfalls.

BackendJavaReflection
0 likes · 12 min read
Unlock Java’s Power: Mastering Reflection for Dynamic Code
Java Architect Essentials
Java Architect Essentials
Aug 11, 2022 · Backend Development

Mastering Spring Events: Synchronous & Asynchronous Usage with Code Samples

This article explains how to use Spring ApplicationEvent to decouple business logic, showing step‑by‑step code for defining custom events, creating listeners with both ApplicationListener and @EventListener, publishing events synchronously and asynchronously, enabling async processing, and verifying behavior with unit tests.

ApplicationEventBackendJava
0 likes · 10 min read
Mastering Spring Events: Synchronous & Asynchronous Usage with Code Samples
Top Architect
Top Architect
Aug 10, 2022 · Backend Development

Understanding Spring @Transactional Rollback Behavior and Exception Handling

This article demonstrates how Spring's @Transactional annotation rolls back transactions only for RuntimeException subclasses, shows practical MySQL update tests that trigger ArithmeticException, and explains how to configure rollback for checked exceptions using rollbackFor, with complete code examples.

@TransactionalJavaMySQL
0 likes · 5 min read
Understanding Spring @Transactional Rollback Behavior and Exception Handling
Top Architect
Top Architect
Aug 6, 2022 · Backend Development

Practical Coding Techniques: Kafka Transaction Commit, Redis Distributed Lock Simplification, and Business Log Decoupling

This article shares several practical coding techniques for backend development, including how to commit Kafka transactions safely, simplify Redis distributed lock usage with Redisson, implement AOP-based method locking, and decouple business logging using thread pools and asynchronous processing.

AOPDistributed LockRedis
0 likes · 13 min read
Practical Coding Techniques: Kafka Transaction Commit, Redis Distributed Lock Simplification, and Business Log Decoupling
IT Architects Alliance
IT Architects Alliance
Aug 6, 2022 · Backend Development

Practical Coding Tips: Kafka Transaction Commit, Redis Distributed Lock Simplification, AOP Lock Annotation, and Business Log Decoupling

This article shares practical development techniques, including how to safely commit Kafka messages within transactions, simplify Redis distributed locks with Redisson, implement an AOP‑based lock annotation for method-level locking, and decouple business logging using asynchronous thread pools and helper utilities.

AOPDistributed LockJava
0 likes · 14 min read
Practical Coding Tips: Kafka Transaction Commit, Redis Distributed Lock Simplification, AOP Lock Annotation, and Business Log Decoupling
IT Architects Alliance
IT Architects Alliance
Aug 4, 2022 · Information Security

Understanding Session Mechanisms, Distributed Session Challenges, and SSO Solutions with CAS Implementation

This article explains traditional session and authentication mechanisms, the problems of session sharing in clustered and multi‑service environments, and presents practical SSO solutions—including CAS‑based single sign‑on and its differences from OAuth2—accompanied by complete Java Spring code examples.

CASJavaRedis
0 likes · 16 min read
Understanding Session Mechanisms, Distributed Session Challenges, and SSO Solutions with CAS Implementation
Top Architect
Top Architect
Aug 2, 2022 · Backend Development

Best Practices for API Design and Controller Standards in Java Backend Development

The article explains why a unified response format like ResultBean is essential for Java backend APIs, outlines common interface design mistakes, provides concrete coding guidelines for controllers, and demonstrates how to use AOP for exception handling and logging, all illustrated with practical code examples.

AOPJavaspring
0 likes · 10 min read
Best Practices for API Design and Controller Standards in Java Backend Development
Selected Java Interview Questions
Selected Java Interview Questions
Jul 31, 2022 · Backend Development

Understanding Spring IoC, Bean Instantiation, and Dependency Injection

This article explains the concepts of coupling, Inversion of Control, and Dependency Injection in the Spring framework, demonstrates various bean instantiation methods—including no‑arg constructors, static and instance factory methods—and provides a complete example of configuring and using Spring beans in a Java application.

BeanDependency InjectionIOC
0 likes · 9 min read
Understanding Spring IoC, Bean Instantiation, and Dependency Injection
Top Architect
Top Architect
Jul 28, 2022 · Backend Development

Spring @Transactional: Propagation Behaviors, Rollback Mechanism, and Self‑Invocation Pitfalls

This article explains Spring's @Transactional annotation, detailing the various transaction propagation options, the default rollback behavior for unchecked exceptions, common pitfalls such as self‑invocation and non‑public methods, and how to use AOP proxies like AopContext.currentProxy and @EnableAspectJAutoProxy to ensure proper transaction management.

@TransactionalAOPRollback
0 likes · 9 min read
Spring @Transactional: Propagation Behaviors, Rollback Mechanism, and Self‑Invocation Pitfalls
Top Architect
Top Architect
Jul 26, 2022 · Backend Development

Stock Deduction Strategies: Database vs Redis Implementations

This article compares three stock‑deduction approaches—single‑record MySQL, sharded MySQL, and Redis with Lua scripts—analyzes their performance and concurrency issues, and provides complete Java/Spring code for a Redis‑based solution including distributed locking and initialization callbacks.

Distributed LockInventoryspring
0 likes · 10 min read
Stock Deduction Strategies: Database vs Redis Implementations
政采云技术
政采云技术
Jul 26, 2022 · Backend Development

Deep Dive into MyBatis: Architecture, Execution Flow, Plugins, Caching, and Spring Integration

This article provides a comprehensive analysis of MyBatis, covering its core architecture, the process of obtaining SqlSessionFactory and SqlSession, the dynamic proxy mechanism for mappers, the execution flow of SQL statements, the plugin system, first‑ and second‑level caching strategies, and how Spring manages MyBatis mappers through factory beans and import registrars.

Backend DevelopmentCachingJava
0 likes · 39 min read
Deep Dive into MyBatis: Architecture, Execution Flow, Plugins, Caching, and Spring Integration
Architect
Architect
Jul 25, 2022 · Backend Development

Stock Deduction Strategies: Database vs Redis and a Spring‑Based Implementation

This article compares three stock‑deduction approaches—single‑record MySQL, multi‑record MySQL, and Redis incrby—analyzes their concurrency drawbacks, and provides a complete Spring Java implementation using a Lua script, distributed lock, and callback for initializing inventory.

springstock management
0 likes · 11 min read
Stock Deduction Strategies: Database vs Redis and a Spring‑Based Implementation
Java Architect Essentials
Java Architect Essentials
Jul 22, 2022 · Backend Development

Using Spring Application Events for Synchronous and Asynchronous Processing

This article demonstrates how to leverage Spring Application Events to decouple business logic, showing step‑by‑step examples of defining custom events, listeners, publishing events synchronously, and enabling asynchronous handling with @EnableAsync and @Async annotations, complete with code snippets and test results.

ApplicationEventasynchronousspring
0 likes · 9 min read
Using Spring Application Events for Synchronous and Asynchronous Processing
21CTO
21CTO
Jul 19, 2022 · Fundamentals

Why Java Remains Dominant: Community, Ecosystem, and Future Trends

The article explores how Java has survived massive industry shifts through a vibrant community, extensive open‑source frameworks, continual language evolution, and emerging opportunities like WebAssembly, illustrating why it stays a cornerstone of enterprise and creative software development.

CommunityJavajvm
0 likes · 8 min read
Why Java Remains Dominant: Community, Ecosystem, and Future Trends
Java Backend Technology
Java Backend Technology
Jul 15, 2022 · Backend Development

Master Java Performance Timing with Spring and Apache StopWatch

This article explains how to use Spring's org.springframework.util.StopWatch and Apache Commons Lang3 StopWatch to accurately measure and analyze Java code execution time, covering setup, basic usage, advanced features, thread‑safety considerations, and practical code examples for both libraries.

Apache CommonsCode ProfilingJava
0 likes · 8 min read
Master Java Performance Timing with Spring and Apache StopWatch
Java Backend Technology
Java Backend Technology
Jul 14, 2022 · Backend Development

Mastering Spring @Transactional: Propagation, Rollback, and Proxy Pitfalls

This article explains Spring's @Transactional annotation, detailing propagation behaviors, rollback rules, common pitfalls such as self-invocation and non‑public methods, and provides practical solutions using AOP proxies and AopContext to ensure proper transaction management in Java backend applications.

@TransactionalAOPDatabase
0 likes · 9 min read
Mastering Spring @Transactional: Propagation, Rollback, and Proxy Pitfalls
Code Ape Tech Column
Code Ape Tech Column
Jul 13, 2022 · Backend Development

Using Spring Event for Synchronous and Asynchronous Processing in Spring Cloud Alibaba Projects

This article demonstrates how to create custom Spring events, define listeners, publish events, and enable asynchronous handling with @EnableAsync and @Async annotations, providing complete code examples and test results for both synchronous and asynchronous scenarios in a Spring Cloud Alibaba micro‑service environment.

BackendEventJava
0 likes · 9 min read
Using Spring Event for Synchronous and Asynchronous Processing in Spring Cloud Alibaba Projects
Bin's Tech Cabin
Bin's Tech Cabin
Jul 8, 2022 · Backend Development

Graceful Shutdown in Java: From Kernel Signals to Netty, Spring & Dubbo

This article explores the complete lifecycle of graceful shutdown for Java server applications, detailing how operating‑system signals, JVM shutdown hooks, and framework‑level mechanisms in Spring, Dubbo, and Netty collaborate to safely stop services while preserving in‑flight requests and resources.

DubboGraceful ShutdownJava
0 likes · 75 min read
Graceful Shutdown in Java: From Kernel Signals to Netty, Spring & Dubbo
Zhuanzhuan Tech
Zhuanzhuan Tech
Jul 6, 2022 · Backend Development

Spring Expression Language (SpEL) Overview and Practical Usage

This article introduces Spring Expression Language (SpEL), explains its common syntax, demonstrates quick-start examples, shows real-world usage with AOP monitoring, and outlines its internal implementation, providing a concise guide for backend developers working with Spring.

AOPExpression LanguageJava
0 likes · 9 min read
Spring Expression Language (SpEL) Overview and Practical Usage
Java Architect Essentials
Java Architect Essentials
Jul 4, 2022 · Backend Development

Comprehensive Guide to Activiti 7 Workflow Engine: Concepts, Configuration, Deployment, and Usage

This article provides a detailed tutorial on Activiti 7 workflow engine, covering workflow fundamentals, BPMN modeling, environment setup, Maven dependencies, configuration files, process deployment, instance creation, task querying and completion, process definition management, resource extraction, and historical data inspection, all illustrated with Java code examples.

ActivitiBPMNProcessEngine
0 likes · 38 min read
Comprehensive Guide to Activiti 7 Workflow Engine: Concepts, Configuration, Deployment, and Usage
Java Architect Essentials
Java Architect Essentials
Jun 29, 2022 · Backend Development

Using MapStruct for Efficient Java Object Mapping and DTO Conversion

This article explains how MapStruct simplifies Java object‑to‑DTO mapping by defining mapping rules, demonstrates various features such as default methods, abstract mappers, multiple parameters, @MappingTarget updates, handling of fields without getters/setters, Spring integration, and custom type conversions with clear code examples.

DTOObject Mappingcode generation
0 likes · 17 min read
Using MapStruct for Efficient Java Object Mapping and DTO Conversion
Code Ape Tech Column
Code Ape Tech Column
Jun 28, 2022 · Backend Development

Implementing Distributed WebSocket Messaging with Spring Cloud Alibaba, Redis, and Kafka

This article explains how to solve cross‑server WebSocket communication in a distributed Java application by using a message queue (Redis or Kafka) to broadcast messages, storing user‑node mappings, and providing complete Spring configuration, code examples, and a demo page for end‑to‑end testing.

BackendDistributed MessagingJava
0 likes · 18 min read
Implementing Distributed WebSocket Messaging with Spring Cloud Alibaba, Redis, and Kafka
Selected Java Interview Questions
Selected Java Interview Questions
Jun 27, 2022 · Backend Development

Implementation Principles and Sample Code of RPC (Remote Procedure Call) in Java

This article explains the fundamentals of RPC, describes the components involved in a basic remote call, and provides a complete Java implementation using Spring, custom XML configuration, Netty for network communication, and Zookeeper for service registration and discovery, complete with server and client code examples.

NettyRPCZookeeper
0 likes · 18 min read
Implementation Principles and Sample Code of RPC (Remote Procedure Call) in Java
Code Ape Tech Column
Code Ape Tech Column
Jun 21, 2022 · Information Security

Implementing Data Desensitization with Custom Jackson Annotations in Java

This article explains how to mask sensitive fields such as ID numbers, phone numbers, and addresses in Java APIs by creating a custom @Sensitive annotation, defining masking strategies, implementing a Jackson serializer, and testing the solution with a Spring REST controller, providing complete code examples and sample output.

AnnotationBackendJava
0 likes · 6 min read
Implementing Data Desensitization with Custom Jackson Annotations in Java
Code Ape Tech Column
Code Ape Tech Column
Jun 17, 2022 · Databases

Understanding Local Transactions in Sharding-JDBC and Their Limits for Distributed Transactions

This article explains why the @Transactional annotation in Sharding-JDBC can roll back across multiple databases in some scenarios, clarifies the cases it truly supports, details the internal rollback implementation, and outlines the situations where local transactions cannot guarantee distributed consistency.

JavaLocal TransactionSharding-JDBC
0 likes · 8 min read
Understanding Local Transactions in Sharding-JDBC and Their Limits for Distributed Transactions
Cognitive Technology Team
Cognitive Technology Team
Jun 10, 2022 · Backend Development

Understanding Spring's @Scheduled Annotation and Its Task Scheduling Mechanism

This article explains how Spring's @Scheduled annotation works, covering configuration options like cron, fixedDelay and fixedRate, the internal processing by ScheduledAnnotationBeanPostProcessor, method reflection, task registration with ScheduledTaskRegistrar, and the underlying execution using ThreadPoolTaskScheduler and ScheduledThreadPoolExecutor.

AnnotationJavaScheduling
0 likes · 6 min read
Understanding Spring's @Scheduled Annotation and Its Task Scheduling Mechanism
Architecture Digest
Architecture Digest
May 30, 2022 · Backend Development

Comprehensive Guide to Activiti 7 Workflow Engine: Concepts, Setup, Deployment, and Usage

This article provides an in‑depth tutorial on Activiti 7 workflow management, covering workflow concepts, system architecture, BPMN modeling, environment setup, Maven dependencies, database configuration, deployment methods, process execution, task handling, and historical data retrieval for Java backend development.

ActivitiBPMNDatabase
0 likes · 43 min read
Comprehensive Guide to Activiti 7 Workflow Engine: Concepts, Setup, Deployment, and Usage
Programmer DD
Programmer DD
May 28, 2022 · Backend Development

Master Unified Exception Handling in Spring with @ControllerAdvice and Assert

This article explains how to replace repetitive try‑catch blocks in Java Spring applications with a clean, centralized exception handling strategy using @ControllerAdvice, custom Assert utilities, and enum‑based error codes, while also showing how to return consistent error responses across services.

@ControllerAdviceExceptionHandlingJava
0 likes · 25 min read
Master Unified Exception Handling in Spring with @ControllerAdvice and Assert
Sanyou's Java Diary
Sanyou's Java Diary
May 22, 2022 · Backend Development

How Spring’s Three‑Level Cache Solves Circular Dependencies

This article explains what circular dependencies are in Spring, describes the three‑level cache mechanism (singletonObjects, earlySingletonObjects, singletonFactories), shows how it resolves singleton bean cycles, and outlines scenarios where the cache cannot break the dependency, such as constructor injection and prototype beans.

Bean LifecycleThree-level Cachecircular dependency
0 likes · 14 min read
How Spring’s Three‑Level Cache Solves Circular Dependencies
Top Architect
Top Architect
May 21, 2022 · Backend Development

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

This article provides an in‑depth tutorial on Spring Validation, covering basic usage, dependency configuration, requestBody and requestParam validation, unified exception handling, advanced techniques such as group, nested, and collection validation, custom validators, programmatic validation, fail‑fast mode, and the underlying implementation mechanisms.

BackendDTOHibernate Validator
0 likes · 16 min read
Comprehensive Guide to Spring Validation: Best Practices, Advanced Features, and Implementation Details
Cognitive Technology Team
Cognitive Technology Team
May 20, 2022 · Backend Development

Controlling Bean Initialization Order in Spring: Using @Autowired, @Resource, @Inject and @DependsOn

This article explains how Spring developers can explicitly control bean instantiation order by using dependency‑injection annotations such as @Autowired, @Resource, @Inject, and the @DependsOn annotation, detailing the underlying processors and showing code examples for each mechanism.

Bean InitializationDependency InjectionJava
0 likes · 4 min read
Controlling Bean Initialization Order in Spring: Using @Autowired, @Resource, @Inject and @DependsOn
Cognitive Technology Team
Cognitive Technology Team
May 20, 2022 · Backend Development

Implementing Business Data Pre‑warming in Spring Using SmartLifecycle and ContextRefreshedEvent

To pre‑warm business data before a Spring web service accepts requests, the article explains two approaches—implementing the SmartLifecycle interface with proper phase ordering and using a ContextRefreshedEvent listener—while highlighting code examples, execution timing, and cautions against asynchronous overrides.

BackendContextRefreshedEventJava
0 likes · 7 min read
Implementing Business Data Pre‑warming in Spring Using SmartLifecycle and ContextRefreshedEvent
Sanyou's Java Diary
Sanyou's Java Diary
May 19, 2022 · Backend Development

Mastering Spring: Core Concepts, Modules, Annotations & Advanced Features

This comprehensive guide walks through Spring’s fundamentals—including IoC, DI, core modules, common annotations, AOP concepts, transaction management, MVC workflow, and Spring Boot auto‑configuration—while also covering advanced topics such as bean lifecycle, circular dependencies, proxy mechanisms, and an introduction to Spring Cloud.

AOPDependency InjectionIOC
0 likes · 54 min read
Mastering Spring: Core Concepts, Modules, Annotations & Advanced Features
macrozheng
macrozheng
May 18, 2022 · Backend Development

Master Spring’s Assert and Utility Classes: Essential Tips & Code Samples

This guide explains Spring’s Assert utilities and a comprehensive set of core helper classes—including ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, StreamUtils, ReflectionUtils, AopUtils, and AopContext—detailing their purpose, typical use cases, and providing concise code examples for each method.

AOPJavaUtility Classes
0 likes · 14 min read
Master Spring’s Assert and Utility Classes: Essential Tips & Code Samples
21CTO
21CTO
May 13, 2022 · Backend Development

How Sonic Achieves Near‑Instant Hot Deployment for Java Services

This article details Meituan's internal Sonic IDEA plugin, explaining hot‑deployment concepts, why they matter, the technical challenges, and Sonic's architecture—including agents, instrumentation, class reloading, Spring Bean/XML/MyBatis reloads, and real‑world deployment experience—showing how code changes can become effective in seconds instead of minutes.

Hot DeploymentIDEA PluginInstrumentation
0 likes · 21 min read
How Sonic Achieves Near‑Instant Hot Deployment for Java Services