Tagged articles

Java

5000 articles · Page 34 of 50
Top Architect
Top Architect
Nov 18, 2024 · Backend Development

Comprehensive Guide to Spring Framework Utility Classes and Their Usage

This article presents a detailed overview of Spring's utility classes—including Assert, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, StreamUtils, ReflectionUtils, and AOP helpers—provides code examples for each, and also contains promotional information about ChatGPT services and a developer community.

AOPJavaReflection
0 likes · 18 min read
Comprehensive Guide to Spring Framework Utility Classes and Their Usage
Code Ape Tech Column
Code Ape Tech Column
Nov 18, 2024 · Backend Development

How to Slim Down SpringBoot Jar Packages for Faster Deployment

This guide explains how to analyze the structure of a SpringBoot jar, separate your own classes from third‑party dependencies, reconfigure Maven packaging to produce a much smaller zip‑layout jar, and deploy it efficiently by uploading only the necessary libraries.

Jar SlimmingJavaMaven
0 likes · 6 min read
How to Slim Down SpringBoot Jar Packages for Faster Deployment
macrozheng
macrozheng
Nov 18, 2024 · Backend Development

How to Turn Java Swing Apps into Standalone Executables: A Practical Guide

This article explores Java Swing packaging challenges, compares five distribution methods—including GraalVM, JLink, and Exe4J—highlights their pros and cons, and demonstrates a custom WinForm tool that bundles a Swing program with a minimal JRE into a double‑clickable executable.

GraalVMJLINKJava
0 likes · 8 min read
How to Turn Java Swing Apps into Standalone Executables: A Practical Guide
Shepherd Advanced Notes
Shepherd Advanced Notes
Nov 18, 2024 · Fundamentals

Why Java’s Ternary Operator Can Throw NPE: Autoboxing Pitfalls Explained

The article explains how Java’s ternary operator can cause NullPointerException when type inference leads to automatic unboxing of a null wrapper, demonstrates this with concrete code examples, decompiled bytecode, and offers strategies such as using consistent types or replacing the ternary with if‑else.

JavaNullPointerExceptionautoboxing
0 likes · 11 min read
Why Java’s Ternary Operator Can Throw NPE: Autoboxing Pitfalls Explained
Top Architect
Top Architect
Nov 17, 2024 · Backend Development

Diagnosing High Memory Usage in Spring Boot Applications: JVM Parameters and Best Practices

This article records and reviews a production incident where multiple Spring Boot services consumed excessive memory, explains how default JVM settings caused each instance to allocate up to 12 GB of heap, and provides step‑by‑step diagnostics, configuration guidelines, and optimization recommendations for backend developers.

JVMJavaMemoryOptimization
0 likes · 8 min read
Diagnosing High Memory Usage in Spring Boot Applications: JVM Parameters and Best Practices
Selected Java Interview Questions
Selected Java Interview Questions
Nov 17, 2024 · Backend Development

Understanding Java Object Allocation: Stack Allocation, TLAB, and Performance Impact

This article examines a Java micro‑benchmark that measures object creation time, explains why printing objects dramatically slows execution, and details JVM allocation strategies such as stack allocation, escape analysis, scalar replacement, and Thread‑Local Allocation Buffers (TLAB) with relevant parameters.

JVMJavaObject Allocation
0 likes · 6 min read
Understanding Java Object Allocation: Stack Allocation, TLAB, and Performance Impact
ITPUB
ITPUB
Nov 17, 2024 · Backend Development

Why Spring Event Can Lose Messages During Startup and How to Avoid It

A deep dive into Spring Event's delayed listener registration reveals how messages can be lost during the brief window between Kafka consumer initialization and EventListener setup, explaining the root cause, illustrating the startup order, and recommending safer alternatives for reliable message handling.

EventJavaMessage Loss
0 likes · 8 min read
Why Spring Event Can Lose Messages During Startup and How to Avoid It
JD Tech
JD Tech
Nov 15, 2024 · Backend Development

Best Practices for Writing High‑Quality Java Methods

This article discusses how to write clean, maintainable Java methods by covering proper method signatures, limiting parameters, avoiding varargs misuse, validating inputs, minimizing side effects, handling exceptions correctly, writing concise method bodies, and providing effective logging and documentation practices.

Best PracticesJavaLogging
0 likes · 21 min read
Best Practices for Writing High‑Quality Java Methods
Architect
Architect
Nov 14, 2024 · Backend Development

How to Set JVM Parameters for a Platform Handling 1 Million Daily Login Requests on an 8 GB Server

This article explains, step by step, how to estimate capacity, choose the appropriate garbage collector, size the young and old generations, configure stack memory, adjust object aging thresholds, and fine‑tune CMS or G1 settings so that a Java service handling one million daily logins can run reliably on an 8 GB node.

Garbage CollectionJVMJava
0 likes · 24 min read
How to Set JVM Parameters for a Platform Handling 1 Million Daily Login Requests on an 8 GB Server
ITPUB
ITPUB
Nov 14, 2024 · Operations

How to Tame 900% CPU Spikes in MySQL and Java Processes

This guide explains why MySQL and Java processes can suddenly consume 900% CPU, walks through systematic diagnosis using Linux tools, and provides concrete remediation steps such as indexing, caching, thread analysis, and code adjustments to bring CPU usage back to normal levels.

CPUJavaLinux
0 likes · 12 min read
How to Tame 900% CPU Spikes in MySQL and Java Processes
Java Tech Enthusiast
Java Tech Enthusiast
Nov 14, 2024 · Databases

Activiti Workflow Engine Database Design

Activiti is a BPMN workflow engine that provides components such as Process, Repository, Runtime, Task, and History services, stores definitions, runtime data, and history in a relational database schema, and is used by deploying BPMN diagrams, starting instances, and managing tasks via its Java API.

ActivitiBPMNDatabase Design
0 likes · 21 min read
Activiti Workflow Engine Database Design
Selected Java Interview Questions
Selected Java Interview Questions
Nov 14, 2024 · Backend Development

AviatorScript: High‑Performance JVM‑Based Expression Engine and Scripting Language – Features and Usage Guide

This article introduces AviatorScript, a lightweight high‑performance expression engine and scripting language for the JVM (including Android), outlines its core features, demonstrates basic expression evaluation, variable handling, built‑in and custom functions, and shows how to run full scripts with code examples.

AviatorExpression EngineJVM
0 likes · 8 min read
AviatorScript: High‑Performance JVM‑Based Expression Engine and Scripting Language – Features and Usage Guide
Architecture Digest
Architecture Digest
Nov 14, 2024 · Backend Development

30 Essential IntelliJ IDEA Plugins for Java Developers

This article presents a curated list of thirty free IntelliJ IDEA plugins, ranging from code assistance and formatting to UI enhancements and productivity tools, each accompanied by brief usage instructions and screenshots to help Java developers streamline their development workflow.

IDE pluginsIntelliJJava
0 likes · 6 min read
30 Essential IntelliJ IDEA Plugins for Java Developers
Code Ape Tech Column
Code Ape Tech Column
Nov 14, 2024 · Backend Development

Integrating Flowable Workflow Engine with Spring Boot: A Step‑by‑Step Guide

This article introduces the evolution of Java‑based workflow engines, compares Activiti, Flowable and Camunda, explains core BPMN concepts, and provides a detailed Spring Boot integration tutorial—including Maven dependencies, BPMN diagram creation, service task implementation, REST endpoint for diagram viewing, unit tests, and common troubleshooting tips.

BPMNFlowableJava
0 likes · 20 min read
Integrating Flowable Workflow Engine with Spring Boot: A Step‑by‑Step Guide
macrozheng
macrozheng
Nov 14, 2024 · Backend Development

Master Java’s New Map Methods: getOrDefault, forEach, merge & More

Learn how Java 8 introduced powerful Map methods such as getOrDefault, forEach, merge, putIfAbsent, compute, computeIfAbsent, computeIfPresent, and replace, with clear code examples that show how they simplify common tasks like default value handling, iteration, merging entries, and conditional updates.

Backend DevelopmentCode TutorialJDK8
0 likes · 10 min read
Master Java’s New Map Methods: getOrDefault, forEach, merge & More
Java Architecture Stack
Java Architecture Stack
Nov 14, 2024 · Backend Development

How Read‑Write Lock Separation Supercharges E‑Commerce Inventory

This article explains the read‑write lock separation design pattern, its principles, suitable scenarios such as high‑concurrency inventory queries, and provides a complete Java implementation with ReentrantReadWriteLock, including code samples, testing, performance benefits, and a discussion of its advantages and limitations.

InventoryManagementJavaPerformance
0 likes · 9 min read
How Read‑Write Lock Separation Supercharges E‑Commerce Inventory
Architect's Guide
Architect's Guide
Nov 14, 2024 · Backend Development

Implementing the Chain of Responsibility Pattern for Product Validation in Java

This article explains the Chain of Responsibility design pattern, demonstrates its application in a product creation workflow with concrete Java code, shows how to configure and assemble handlers dynamically using Spring, and discusses the pattern's advantages, drawbacks, and testing scenarios.

Chain of ResponsibilityJavaSpring
0 likes · 20 min read
Implementing the Chain of Responsibility Pattern for Product Validation in Java
Java Interview Crash Guide
Java Interview Crash Guide
Nov 14, 2024 · Fundamentals

Master IntelliJ IDEA Debugging: From Basics to Advanced Techniques

This guide walks you through every essential feature of IntelliJ IDEA's Debug tool—pre‑setup, main UI, service and debug buttons, watches, variable inspection, conditional breakpoints, expression evaluation, frame rollback, force return, multithreaded, Stream and remote debugging—empowering you to troubleshoot Java code efficiently.

IDEIntelliJ IDEAJava
0 likes · 16 min read
Master IntelliJ IDEA Debugging: From Basics to Advanced Techniques
Architect
Architect
Nov 13, 2024 · Backend Development

UniHttp – Declarative HTTP Client Framework for Java Enterprise Projects

UniHttp is a declarative HTTP interface integration framework that simplifies third‑party API calls in Java projects by generating proxy beans, supporting rich annotations for request parameters, lifecycle hooks, custom processors, and seamless Spring integration, thereby improving code cohesion and maintainability.

APIHTTPJava
0 likes · 21 min read
UniHttp – Declarative HTTP Client Framework for Java Enterprise Projects
Top Architect
Top Architect
Nov 13, 2024 · Fundamentals

Comprehensive Guide to IntelliJ IDEA Debugging Features

This article provides a step‑by‑step tutorial on using IntelliJ IDEA's Debug tool, covering preparation, main interface elements, each debugging button, variable inspection and modification, conditional breakpoints, expression evaluation, rollback, force return, multi‑thread, Stream and remote debugging, with code examples and screenshots.

IDEIntelliJ IDEAJava
0 likes · 20 min read
Comprehensive Guide to IntelliJ IDEA Debugging Features
JD Cloud Developers
JD Cloud Developers
Nov 13, 2024 · Backend Development

Mastering Sentinel: Deep Dive into Java Flow Control and Cloud‑Native Governance

Sentinel, an open‑source flow‑control component born from Alibaba’s ecosystem, offers out‑of‑the‑box circuit‑breaking, rate‑limiting, and real‑time monitoring for Java microservices, with extensive rule types, dashboard visualization, datasource integrations, and adaptable architecture that supports multiple protocols, making it a versatile solution for cloud‑native traffic governance.

Flow ControlJavaSentinel
0 likes · 19 min read
Mastering Sentinel: Deep Dive into Java Flow Control and Cloud‑Native Governance
Architect's Guide
Architect's Guide
Nov 13, 2024 · Backend Development

Designing a Modular Spring Boot Backend Project: Principles, Module Structure, and Maven Configuration

This article presents a comprehensive guide to building a Spring Boot backend system by outlining essential design principles, detailing a multi‑module architecture with clear responsibilities, and providing complete Maven POM configurations for each module to enable scalable and maintainable development.

JavaMavenSpring Boot
0 likes · 14 min read
Designing a Modular Spring Boot Backend Project: Principles, Module Structure, and Maven Configuration
Top Architect
Top Architect
Nov 12, 2024 · Backend Development

Preventing Duplicate Submissions in Java Backend with Debounce and Distributed Locks

This article explains how to implement request debouncing and distributed locking in a Java backend using Redis and Redisson, covering the definition of debounce, identifying suitable APIs, generating unique keys, and providing complete code examples for both cache‑based and Redisson‑based lock mechanisms.

Distributed LockJavaRedis
0 likes · 17 min read
Preventing Duplicate Submissions in Java Backend with Debounce and Distributed Locks
Java Tech Enthusiast
Java Tech Enthusiast
Nov 12, 2024 · Backend Development

Boost Spring Boot API Testing with the Free Open‑Source Cool Request Plugin

The article introduces Cool Request, a free open‑source IntelliJ IDEA plugin that streamlines Spring Boot backend API testing by providing in‑IDE request execution, method timing statistics, interceptor bypass, job triggering, Java pre/post scripts, response preview, and export to third‑party tools, complete with usage examples and code snippets.

API testingBackend DevelopmentCool Request
0 likes · 8 min read
Boost Spring Boot API Testing with the Free Open‑Source Cool Request Plugin
macrozheng
macrozheng
Nov 12, 2024 · Backend Development

Boost Kafka Throughput in Spring Boot: Batch Consumption Guide

This article demonstrates how to integrate Kafka with Spring Boot, add necessary dependencies and configuration, implement both single‑message and batch consumers, and tune batch settings to dramatically improve processing speed for millions of records in a microservice environment.

BatchProcessingJavaKafka
0 likes · 12 min read
Boost Kafka Throughput in Spring Boot: Batch Consumption Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 12, 2024 · Backend Development

Unlock Rapid API Development with Magic‑API: A Spring Boot 3 Practical Guide

This article introduces the Magic‑API framework for Java, explains its extensive features, walks through environment setup, dependency configuration, and demonstrates real‑world use cases such as data source management, pagination, SQL, MyBatis, HTTP calls, Redis integration, and inline Java execution within a Spring Boot 3 project.

API DevelopmentJavaREST
0 likes · 6 min read
Unlock Rapid API Development with Magic‑API: A Spring Boot 3 Practical Guide
DeWu Technology
DeWu Technology
Nov 11, 2024 · Backend Development

Precise Testing Platform: Architecture, Recommendation Engine, and Graph Database Implementation

The Precise Testing Platform combines a recommendation engine—featuring a link analyzer, diff analyzer, and knowledge base—to automatically construct detailed method‑call graphs from source code, extract HTTP and Dubbo APIs, handle reflections and inheritance, and store billions of nodes in Nebula Graph, thereby eliminating blind, missed, and redundant tests while boosting coverage and reducing testing costs.

ASTBackend DevelopmentJava
0 likes · 54 min read
Precise Testing Platform: Architecture, Recommendation Engine, and Graph Database Implementation
Top Architect
Top Architect
Nov 11, 2024 · Backend Development

Integrating Flowable Workflow Engine with Spring Boot: A Step‑by‑Step Guide

This article explains how to use the Flowable BPMN engine in a Spring Boot project, covering workflow basics, related BPMN concepts, Maven dependencies, diagram creation, service‑task implementation, REST API for diagram viewing, unit testing, and common pitfalls such as font configuration and process definition updates.

BPMNFlowableJava
0 likes · 21 min read
Integrating Flowable Workflow Engine with Spring Boot: A Step‑by‑Step Guide
Selected Java Interview Questions
Selected Java Interview Questions
Nov 11, 2024 · Backend Development

Understanding the Difference Between execute() and submit() in Java ThreadPoolExecutor

This article explains how Java's ThreadPoolExecutor handles tasks submitted via execute() and submit(), why execute() prints exceptions directly while submit() defers them until Future.get() is called, and provides detailed source‑code analysis and examples to illustrate the underlying mechanisms.

FutureTaskJavaThreadPoolExecutor
0 likes · 14 min read
Understanding the Difference Between execute() and submit() in Java ThreadPoolExecutor
Java Tech Enthusiast
Java Tech Enthusiast
Nov 11, 2024 · Backend Development

LiteFlow: A Java Flow Orchestration Framework Overview

LiteFlow is a lightweight Java flow‑orchestration framework that lets developers break complex business processes into independent Spring‑Boot node components, configure them via XML, and execute them with FlowExecutor, supporting conditional switches and loops while focusing on simple workflow modeling rather than role‑task management.

JavaLiteFlowProcess Orchestration
0 likes · 8 min read
LiteFlow: A Java Flow Orchestration Framework Overview
Architecture Digest
Architecture Digest
Nov 11, 2024 · Backend Development

Fluent Mybatis Tutorial: Introduction, Features, Comparison with MyBatis/MyBatis Plus, and Practical CRUD Implementation

This article introduces the Fluent Mybatis ORM framework, explains its design advantages, demonstrates how to implement a complex student‑score aggregation query using Fluent Mybatis, native MyBatis and MyBatis‑Plus, and provides end‑to‑end code examples for entity generation, configuration, and CRUD testing.

Fluent-MyBatisJavaMyBatis
0 likes · 16 min read
Fluent Mybatis Tutorial: Introduction, Features, Comparison with MyBatis/MyBatis Plus, and Practical CRUD Implementation
Architect
Architect
Nov 10, 2024 · Backend Development

How to Prevent Duplicate Submissions in Java APIs with Redis and Redisson Locks

This article explains why API debouncing is crucial for backend Java services, outlines which endpoints need protection, describes how to identify duplicate requests, and provides step‑by‑step implementations using Redis shared‑cache and Redisson distributed locks with concrete code examples and test results.

Distributed LockJavaRedis
0 likes · 14 min read
How to Prevent Duplicate Submissions in Java APIs with Redis and Redisson Locks
Top Architect
Top Architect
Nov 10, 2024 · Backend Development

Understanding Dependency Injection Types in Spring: Constructor, Setter, and Field Injection

This article explains Spring's three dependency injection methods—constructor‑based, setter‑based, and field‑based—illustrates each with code examples, discusses why field injection is discouraged, and recommends using constructor injection for required dependencies and setter injection for optional ones.

Constructor InjectionJavaSpring
0 likes · 11 min read
Understanding Dependency Injection Types in Spring: Constructor, Setter, and Field Injection
dbaplus Community
dbaplus Community
Nov 10, 2024 · Cloud Native

Which JDK Performs Best on Kubernetes? A Detailed Comparison

This article benchmarks several popular JDK distributions on Kubernetes using a Spring Boot 3 application, measuring image size, startup time, memory consumption, and throughput with k6, and concludes that performance differences are minimal after repeated testing.

DockerJDKJava
0 likes · 11 min read
Which JDK Performs Best on Kubernetes? A Detailed Comparison
JavaEdge
JavaEdge
Nov 9, 2024 · Artificial Intelligence

Build an AI‑Powered Airline Ticket Agent with Spring AI Alibaba

This tutorial walks through creating an intelligent airline‑ticket customer‑service agent using Spring AI Alibaba, covering requirements, architecture, RAG integration, function calling, chat memory, core capabilities, code implementation with ChatClient, and a sample running result.

AI AgentAlibabaFunction Calling
0 likes · 9 min read
Build an AI‑Powered Airline Ticket Agent with Spring AI Alibaba
Java Tech Enthusiast
Java Tech Enthusiast
Nov 9, 2024 · Databases

Java Connection Pool Optimization with HikariCP

The article examines Java connection pool technologies, comparing Commons Pool 2 with HikariCP and showing through JMH benchmarks that HikariCP delivers up to five‑times higher throughput, while detailing lifecycle management, configuration, eviction strategies, sizing best practices, and real‑world uses such as database, HTTP, and RPC connections.

Connection PoolHikariCPJava
0 likes · 12 min read
Java Connection Pool Optimization with HikariCP
Java Architect Essentials
Java Architect Essentials
Nov 8, 2024 · Backend Development

The Hidden Risks of Using Lombok in Java Projects

This article examines how Lombok reduces boilerplate in Java code, demonstrates the transformation of a typical JavaBean before and after Lombok, and critically discusses five major drawbacks—including JDK compatibility, forced dependency, reduced readability, increased coupling, and technical debt—guiding developers to weigh its benefits against long‑term maintenance costs.

JavaLombokboilerplate
0 likes · 10 min read
The Hidden Risks of Using Lombok in Java Projects
Java Tech Enthusiast
Java Tech Enthusiast
Nov 8, 2024 · Backend Development

Deploy kkfileviewer Container and Integrate MinIO with Spring Boot

This guide walks through building and running the kkfileviewer Docker container, then shows how to add MinIO to a Spring Boot application with configuration, a client bean, utility methods, and REST endpoints for uploading files and retrieving presigned preview URLs to display in the kkfileviewer UI.

DockerJavaSpring Boot
0 likes · 7 min read
Deploy kkfileviewer Container and Integrate MinIO with Spring Boot
Code Ape Tech Column
Code Ape Tech Column
Nov 8, 2024 · Backend Development

Implementing a Dynamic Thread Pool with Nacos in Spring Boot

This article explains how to externalize and dynamically adjust a Spring Boot thread pool's core and maximum sizes using Nacos as a configuration center, allowing runtime changes without service restarts and demonstrating the setup, code, and testing procedures.

JavaNacosSpring Boot
0 likes · 9 min read
Implementing a Dynamic Thread Pool with Nacos in Spring Boot
Java Architect Essentials
Java Architect Essentials
Nov 7, 2024 · Backend Development

Building a Netty + WebSocket Message Push Server in Java

This tutorial explains how to use Netty to create a Java backend server with WebSocket support, covering server initialization, channel configuration, pipeline setup, custom handlers, and message‑push services, and includes complete code examples for each component.

JavaMessage PushNetty
0 likes · 10 min read
Building a Netty + WebSocket Message Push Server in Java
macrozheng
macrozheng
Nov 7, 2024 · Backend Development

Automate CRUD Code Generation for Spring Boot: Build 20+ Tables in Hours

This article introduces a Spring Boot code‑generation tool that automatically creates database tables, entity classes, DAO interfaces, service layers and controllers, turning weeks of manual CRUD development for dozens of tables into a matter of minutes, and explains its design, templates, dynamic parameters and usage.

CRUDJavaSpring Boot
0 likes · 18 min read
Automate CRUD Code Generation for Spring Boot: Build 20+ Tables in Hours
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 7, 2024 · Backend Development

Date Formatting Techniques in Spring Boot Applications

This article explains why consistent date formatting is crucial in Spring Boot APIs, outlines common scenarios such as front‑end data exchange, database storage and logging, and presents multiple server‑side and client‑side solutions—including SimpleDateFormat, DateTimeFormatter, global Jackson settings, annotations, custom converters, and timestamp output—complete with code examples.

Backend DevelopmentDateTimeFormatterJava
0 likes · 12 min read
Date Formatting Techniques in Spring Boot Applications
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 7, 2024 · Backend Development

Integrating XXL‑Job for Scheduled Hot‑Search Crawlers in a Java Backend

This tutorial explains how to replace the basic @Scheduled annotation with the flexible XXL‑Job distributed scheduler, covering repository download, admin deployment, database initialization, Spring‑Boot executor configuration, job registration for Douyin and Bilibili hot‑search crawling, and a Vue front‑end component for displaying ranked results with real‑time update timestamps.

Backend DevelopmentJavaSpring Boot
0 likes · 14 min read
Integrating XXL‑Job for Scheduled Hot‑Search Crawlers in a Java Backend
Su San Talks Tech
Su San Talks Tech
Nov 7, 2024 · Backend Development

Optimizing JVM GC for High‑Throughput E‑Commerce Order Systems

This article explains how to analyze per‑second object memory usage in a 100k TPS e‑commerce order flow, choose an appropriate garbage collector, set heap and young‑generation sizes, and apply common JVM tuning parameters to reduce Full GC pauses and improve latency and throughput.

Garbage CollectionJVMJava
0 likes · 6 min read
Optimizing JVM GC for High‑Throughput E‑Commerce Order Systems
Bin's Tech Cabin
Bin's Tech Cabin
Nov 7, 2024 · Backend Development

How Netty Detects Memory Leaks: Deep Dive into LeakAwareBuffer and ResourceLeakDetector

This article provides a comprehensive analysis of Netty's memory‑leak detection mechanism, covering the design principles, leak‑aware buffers, reference handling, sampling strategies, detection levels, and the internal models that enable accurate identification of unreleased native memory in both pooled and unpooled ByteBuf allocations.

JavaMemory Leak DetectionNetty
0 likes · 44 min read
How Netty Detects Memory Leaks: Deep Dive into LeakAwareBuffer and ResourceLeakDetector
Architect
Architect
Nov 6, 2024 · Databases

Storing IPv4 as Unsigned Int in MySQL: Benefits, Drawbacks & Code

Using an unsigned INT to store IPv4 addresses in MySQL saves space and enables efficient range queries, while strings are larger and slower; the article explains these advantages, outlines conversion functions INET_ATON/INET_NTOA, shows equivalent handling for IPv6, and provides Java utilities for bidirectional conversion.

IPv4JavaMySQL
0 likes · 6 min read
Storing IPv4 as Unsigned Int in MySQL: Benefits, Drawbacks & Code
DaTaobao Tech
DaTaobao Tech
Nov 6, 2024 · Fundamentals

Understanding Java Generics: Origins, Features, and the PECS Principle

Java generics, introduced in Java 5 to replace unsafe Object usage, provide compile‑time type safety, clearer code, and eliminate unchecked casts by allowing type‑parameterized classes, methods, and collections, while type erasure and bridge methods preserve backward compatibility, and the PECS rule (producer extends consumer super) guides safe use of wildcards through covariance and contravariance.

JavaPECScovariance
0 likes · 11 min read
Understanding Java Generics: Origins, Features, and the PECS Principle
Java Tech Enthusiast
Java Tech Enthusiast
Nov 6, 2024 · Backend Development

Java Interview Insights: Spring Boot Startup, Spring MVC Flow, MySQL Indexes, and Redis Performance

The article recounts a recent Hikvision interview, outlining campus salary ranges and providing a technical Q&A that explains Spring Boot’s startup sequence, Spring MVC request handling, MySQL index structures, creation rules, and performance diagnostics, as well as Redis’s in‑memory, single‑threaded architecture and optional I/O threading.

JavaMySQLRedis
0 likes · 20 min read
Java Interview Insights: Spring Boot Startup, Spring MVC Flow, MySQL Indexes, and Redis Performance
Code Ape Tech Column
Code Ape Tech Column
Nov 6, 2024 · Backend Development

Implementing a Snapchat-like Self-Destructing Image Feature with Spring Boot and MySQL

This article presents a step‑by‑step guide on building a Snapchat‑style “burn after reading” image sharing system using Spring Boot, MySQL, Thymeleaf, and optional cloud storage, covering background analysis, architecture design, environment setup, code implementation, optimization, testing, and deployment.

JavaMySQLSelf-Destructing Images
0 likes · 19 min read
Implementing a Snapchat-like Self-Destructing Image Feature with Spring Boot and MySQL
Architect's Tech Stack
Architect's Tech Stack
Nov 6, 2024 · Backend Development

Optimizing MyBatis Batch Insert Performance with ExecutorType.BATCH and Proper Value Chunking

This article explains why using MyBatis foreach for bulk inserts can cause severe performance degradation, analyzes the underlying cost of large prepared statements, and demonstrates how switching to ExecutorType.BATCH or limiting each INSERT to 20‑50 rows dramatically improves insertion speed.

Batch InsertExecutorType.BATCHJava
0 likes · 8 min read
Optimizing MyBatis Batch Insert Performance with ExecutorType.BATCH and Proper Value Chunking
Java Architect Essentials
Java Architect Essentials
Nov 5, 2024 · Backend Development

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

This article provides a detailed tutorial on the Activiti 7 workflow engine, covering workflow concepts, BPMN modeling, environment configuration, Maven dependencies, database schema creation, deployment methods, process instance management, task handling, and historical data querying, with complete code examples for Java developers.

ActivitiBPMNJava
0 likes · 38 min read
Comprehensive Guide to Activiti 7 Workflow Engine: Concepts, Environment Setup, Deployment, and Usage
Architect
Architect
Nov 5, 2024 · Backend Development

Implementing Transactional Messages with RocketMQ in Microservices

This article explains RocketMQ's transactional message mechanism, covering half‑message concepts, back‑check processes, implementation steps with code examples, and how to achieve reliable event handling and distributed transaction consistency in a microservice architecture.

JavaRocketMQTransactional Messaging
0 likes · 12 min read
Implementing Transactional Messages with RocketMQ in Microservices
Architecture Digest
Architecture Digest
Nov 5, 2024 · Backend Development

Spring Annotation-Based Development and MyBatis Integration Tutorial

This article explains how Spring 3.0's pure annotation mode simplifies bean configuration, demonstrates using @Component, @Scope, @Autowired, @Qualifier, @Value, and @PropertySource for dependency injection and property loading, and shows step‑by‑step integration of MyBatis with Spring, including required dependencies and configuration classes.

Dependency InjectionJavaMyBatis
0 likes · 8 min read
Spring Annotation-Based Development and MyBatis Integration Tutorial
Top Architect
Top Architect
Nov 5, 2024 · Backend Development

Spring Boot Utility Classes Overview: Assertions, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ReflectionUtils, and AopUtils

This article introduces a comprehensive set of Spring Boot utility classes—including assertion helpers, object and string utilities, collection operations, file and resource handling, reflection tools, and AOP utilities—providing code examples and usage guidelines for Java backend development.

Backend DevelopmentFile I/OJava
0 likes · 16 min read
Spring Boot Utility Classes Overview: Assertions, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ReflectionUtils, and AopUtils
Selected Java Interview Questions
Selected Java Interview Questions
Nov 5, 2024 · Backend Development

Best Practices for Handling Exceptions in Java

This article presents comprehensive Java exception‑handling guidelines, covering why exceptions should not be ignored, how to use global handlers, capture specific exceptions, properly close I/O streams, employ try‑with‑resources, avoid returning in finally blocks, log detailed errors, and design custom exceptions for clean, maintainable backend code.

Best PracticesJavaSpringBoot
0 likes · 13 min read
Best Practices for Handling Exceptions in Java
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 5, 2024 · Backend Development

When to Place try‑catch Inside or Outside a for Loop in Java

This article explains the functional differences, performance impact, and practical considerations of placing a try‑catch block either outside or inside a Java for loop, illustrating each approach with code examples, execution results, and recommendations based on business requirements.

Backend DevelopmentJavaPerformance
0 likes · 6 min read
When to Place try‑catch Inside or Outside a for Loop in Java
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 5, 2024 · Artificial Intelligence

How to Build a Java Spring AI Alibaba Chat Service with React Frontend

Learn step‑by‑step how to integrate Spring AI Alibaba into a Spring Boot backend, configure API keys, add necessary dependencies, create a CORS‑enabled chat controller, and then develop a matching React frontend that streams AI responses, enabling a complete Java‑to‑React AI chat application.

ChatbotJavaSpring AI
0 likes · 13 min read
How to Build a Java Spring AI Alibaba Chat Service with React Frontend
Su San Talks Tech
Su San Talks Tech
Nov 5, 2024 · Backend Development

Mastering Sentinel: From Setup to Advanced Flow Control in Spring Cloud

This comprehensive guide walks you through installing Sentinel, configuring its dashboard, integrating it with Spring Cloud microservices, and mastering flow control, circuit breaking, hotspot parameter limiting, system adaptive protection, custom block handling, rule persistence with Nacos, and cluster-wide rate limiting.

JavaNacosSentinel
0 likes · 37 min read
Mastering Sentinel: From Setup to Advanced Flow Control in Spring Cloud
macrozheng
macrozheng
Nov 4, 2024 · Backend Development

Deploy Spring Boot Apps Instantly with IDEA + Docker: One‑Click Remote Deployment

Learn how to replace manual jar uploads and java -jar commands by configuring IntelliJ IDEA and Docker for one‑click remote deployment of Spring Boot applications, covering prerequisite setup, Docker daemon basics, Dockerfile creation, and step‑by‑step configuration to streamline and automate the deployment process.

DockerIntelliJ IDEAJava
0 likes · 9 min read
Deploy Spring Boot Apps Instantly with IDEA + Docker: One‑Click Remote Deployment
Top Architecture Tech Stack
Top Architecture Tech Stack
Nov 4, 2024 · Backend Development

Date Formatting Techniques in Spring Boot Applications

This article explains various Spring Boot approaches for formatting dates in API responses, covering frontend JavaScript utilities, Java SimpleDateFormat and DateTimeFormatter, global Jackson settings, annotation‑based formatting, custom converters, ControllerAdvice initBinder, and timestamp output methods.

Backend DevelopmentDateTimeFormatterJava
0 likes · 12 min read
Date Formatting Techniques in Spring Boot Applications
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 4, 2024 · Backend Development

Unveiling FastJSON 2.0.31: A Deep Dive into Its Serialization Mechanics

This article provides a comprehensive walkthrough of FastJSON 2.0.31's serialization and deserialization process, covering its core architecture, step‑by‑step execution flow, common pitfalls such as getter misuse and circular references, and practical guidance on annotations and SerializerFeature options.

ASMJavaReflection
0 likes · 20 min read
Unveiling FastJSON 2.0.31: A Deep Dive into Its Serialization Mechanics
FunTester
FunTester
Nov 4, 2024 · Backend Development

Mastering Java Fault Injection with Byteman: A Hands‑On Guide

Byteman is a dynamic Java fault‑injection tool that lets developers simulate network delays, service crashes, and resource exhaustion without altering source code, offering seamless integration with JUnit/TestNG, detailed rule definitions, and convenient shell scripts for installing, submitting, and removing fault‑injection rules.

BytemanFault InjectionJVM
0 likes · 12 min read
Mastering Java Fault Injection with Byteman: A Hands‑On Guide
Top Architect
Top Architect
Nov 3, 2024 · Backend Development

Improving Spring Boot Controllers: From Bad Practices to Clean Design with @Valid and Global Exception Handling

This article examines common pitfalls in Spring Boot controller implementations, demonstrates how to refactor messy controllers into clean, maintainable code using @Valid for input validation and a centralized exception handler, and highlights best‑practice guidelines for backend development.

Backend DevelopmentController DesignJava
0 likes · 11 min read
Improving Spring Boot Controllers: From Bad Practices to Clean Design with @Valid and Global Exception Handling
Java Tech Enthusiast
Java Tech Enthusiast
Nov 3, 2024 · Backend Development

Using @Service to Replace @Controller in Spring Boot

In Spring Boot, a class annotated with @Service can act as a web controller if it is discovered by component scanning and carries @RequestMapping (or method‑level mapping) annotations, allowing HTTP requests to be handled just like a traditional @Controller‑annotated bean.

ControllerDependencyInjectionJava
0 likes · 7 min read
Using @Service to Replace @Controller in Spring Boot
Architecture Digest
Architecture Digest
Nov 3, 2024 · Backend Development

Using Easy-Query ORM for Strongly Typed OLTP and OLAP Queries in Java

This article introduces Easy-Query, a Java ORM that offers strong‑typed OLTP and OLAP query capabilities, demonstrates how to define entity classes with many‑to‑many and one‑to‑one relationships, and provides multiple code examples for complex queries, DTO generation, and automatic inclusion of related data.

Easy-QueryJavaOLAP
0 likes · 11 min read
Using Easy-Query ORM for Strongly Typed OLTP and OLAP Queries in Java
Su San Talks Tech
Su San Talks Tech
Nov 3, 2024 · Backend Development

Mastering Java Locks: From Optimistic to Biased – A Complete Guide

This article offers a comprehensive overview of Java's lock mechanisms, detailing each lock type, its underlying principle, typical use cases, differences between synchronized and Lock, and practical code examples for implementing read‑write locks and optimizing concurrency.

ConcurrencyJavaLocks
0 likes · 19 min read
Mastering Java Locks: From Optimistic to Biased – A Complete Guide
Top Architect
Top Architect
Nov 2, 2024 · Backend Development

Optimizing MyBatis-Plus Batch Insert Performance with rewriteBatchedStatements and Multithreading

This article explains how to dramatically speed up MyBatis-Plus batch inserts by enabling the rewriteBatchedStatements JDBC property, creating custom batch insert/update methods, and applying multithreading, providing code examples, performance test results, and practical recommendations for handling large data synchronizations.

Batch InsertJavaMultithreading
0 likes · 15 min read
Optimizing MyBatis-Plus Batch Insert Performance with rewriteBatchedStatements and Multithreading
Top Architect
Top Architect
Nov 2, 2024 · Backend Development

Optimizing Excel Export with EasyExcel: Performance Improvements and Merged‑Cell Strategies

This article demonstrates how to boost performance when exporting large datasets to Excel using EasyExcel, covering single‑batch, paginated, and concurrent writes, and explains multiple approaches—including annotations and custom WriteHandlers—to efficiently create merged cells in the generated spreadsheets.

Cell MergingConcurrencyEasyExcel
0 likes · 18 min read
Optimizing Excel Export with EasyExcel: Performance Improvements and Merged‑Cell Strategies
Selected Java Interview Questions
Selected Java Interview Questions
Nov 2, 2024 · Backend Development

Comprehensive Guide to Using Ctrip’s Open‑Source Apollo Distributed Configuration Center

This article provides an in‑depth tutorial on Apollo, Ctrip’s open‑source distributed configuration center, covering its concepts, features, four‑dimensional model, client architecture, deployment steps, SpringBoot integration, Kubernetes deployment, and practical testing scenarios for real‑time configuration updates.

ApolloJavaKubernetes
0 likes · 22 min read
Comprehensive Guide to Using Ctrip’s Open‑Source Apollo Distributed Configuration Center
macrozheng
macrozheng
Nov 2, 2024 · Backend Development

Is Hutool Worth Using? A Deep Dive into Java’s Popular Utility Library

This article examines the popular Chinese Java utility library Hutool, discussing its features, recent updates, pros and cons, and provides practical code examples for integration, covering dependency setup, type conversion, email, ID generation, HTTP requests, caching, encryption, threading, and more.

Backend DevelopmentCode examplesHutool
0 likes · 18 min read
Is Hutool Worth Using? A Deep Dive into Java’s Popular Utility Library
21CTO
21CTO
Nov 1, 2024 · Information Security

Google Launches PipelineDP4J: Open-Source Java Library for Differential Privacy

Google has open‑sourced PipelineDP4J, a Java library that brings large‑scale differential privacy to developers, enabling privacy‑preserving data analysis across billions of devices while lowering the barrier for Java programmers and introducing tools for auditing privacy guarantees.

Differential PrivacyGoogleJava
0 likes · 3 min read
Google Launches PipelineDP4J: Open-Source Java Library for Differential Privacy
Architect
Architect
Nov 1, 2024 · Backend Development

Designing and Implementing a Workflow Approval System with Activiti

This article explains how to design, configure, and code a multi‑level leave‑approval workflow using the Activiti BPM engine, covering process diagram creation, deployment, task handling, exclusive gateways, and database schema while providing complete Java examples and best‑practice recommendations.

ActivitiBPMNJava
0 likes · 25 min read
Designing and Implementing a Workflow Approval System with Activiti
Top Architect
Top Architect
Nov 1, 2024 · Backend Development

Using Spring Transaction Hooks with TransactionSynchronizationManager for Asynchronous Kafka Messaging

The article explains how to leverage Spring's TransactionSynchronizationManager to detect active transactions and register synchronization callbacks that asynchronously send Kafka messages after a transaction commits, ensuring reliable fund‑flow archiving in payment systems while avoiding thread‑switch issues.

JavaKafkaSpring
0 likes · 11 min read
Using Spring Transaction Hooks with TransactionSynchronizationManager for Asynchronous Kafka Messaging
Architecture Digest
Architecture Digest
Nov 1, 2024 · Backend Development

Using Spring WebClient Instead of RestTemplate: Benefits, Code Samples, and Error Handling

Spring WebClient, the reactive replacement for the deprecated RestTemplate in Spring 5+, offers non‑blocking I/O, functional style, streaming support, and improved error handling; this article explains its benefits, demonstrates synchronous and asynchronous request patterns, timeout configuration, and comprehensive error processing with code examples.

ErrorHandlingHTTPJava
0 likes · 12 min read
Using Spring WebClient Instead of RestTemplate: Benefits, Code Samples, and Error Handling