Tagged articles
Utility
66 articles · Page 1 of 1

java1234Aug 8, 2026 · Backend Development
The article explains how Hutool 5 consolidates common Java utilities—such as string handling, date formatting, file I/O, HTTP requests, and cryptography—into concise, ready‑to‑use methods, reducing boilerplate code, simplifying project setup, and improving maintainability.
Code ExampleGradleHutool
0 likes · 11 min read

This article explains why using Java's BigDecimal for high‑precision calculations requires careful constructor selection, demonstrates the hidden errors of the double‑based constructor, shows how to format and compare values, and provides a utility class with safe arithmetic methods.
ArithmeticJavaNumberFormat
0 likes · 24 min read

This article explains how Java's BigDecimal class provides exact arithmetic for numbers beyond double's 16‑digit limit, demonstrates the pitfalls of using the double constructor with concrete examples, and guides developers through constructors, common methods, formatting, exception handling, and a utility class for high‑precision calculations.
ArithmeticJavaNumberFormat
0 likes · 27 min read

This article introduces the Reflector library—a comprehensive Java reflection utility—covers its core features, shows how to download it from GitHub, and provides step‑by‑step code examples for accessing private fields, invoking methods, creating instances, handling annotations, copying objects, and more, all with expected output.
Code ExampleJavaReflection
0 likes · 9 min read

This article introduces LatchUtils, a lightweight Java utility that streamlines asynchronous task registration and waiting, compares it with manual CountDownLatch and CompletableFuture approaches, and demonstrates how it reduces boilerplate while keeping business logic clear and maintainable.
ConcurrencyCountDownLatchExecutorService
0 likes · 15 min read

This article compiles essential Spring and Java utility methods—including assertion checks, object and collection handling, file I/O, resource management, and reflection/AOP tools—providing concise code examples and usage guidelines to help developers avoid redundant code and write cleaner, more reliable applications.
IOJavaReflection
0 likes · 13 min read

This article explains how to replace repetitive !=null checks in Java by identifying the data type and using the appropriate utility classes—StringUtils for strings, ObjectUtils for objects, and CollectionUtils for collections—to perform concise and reliable null or empty evaluations, including code examples and discussion of edge cases.
CollectionUtilsJavaObjectUtils
0 likes · 8 min read

This article provides a comprehensive guide to using Jackson for JSON processing in modern Java applications, covering typical scenarios such as object serialization, date formatting, nested structures, dynamic field filtering, tree model manipulation, a complete utility class, and best‑practice recommendations.
JSONJacksonJava
0 likes · 16 min read

This article introduces a Java utility class named CompressUtil that provides methods for compressing files and directories into ZIP archives, handling duplicate filenames, creating new files safely, and offering HTTP endpoints for downloading the generated ZIP files in a single request.
ServletUtilityfile compression
0 likes · 10 min read

This article provides a comprehensive guide to Spring's built‑in utility classes—including Assert, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ReflectionUtils, and AopUtils—showing their purpose, typical usage patterns, and example method signatures for developers working on Java backend projects.
AOPJavaReflection
0 likes · 17 min read


ITPUBNov 22, 2024 · Backend Development
This article presents a set of ten Java Stream‑based utility methods that simplify converting between Collection, List, Set, and Map types, showing practical examples, test cases, and reusable implementations for common data‑mapping scenarios.
ConversionJavaStream
0 likes · 11 min read

This article, written by a senior architect, reviews Spring’s built‑in utility classes—including assertions, object and collection helpers, file/IO operations, and reflection/AOP tools—providing code snippets and usage notes to help developers replace redundant custom utilities and improve backend Java code quality.
JavaReflectionSpring
0 likes · 15 min read

This article provides an in‑depth introduction to Java's BigDecimal class, covering its purpose for high‑precision arithmetic, frequently used constructors, essential arithmetic and conversion methods, comparison techniques, number‑formatting examples, common exceptions during division, and a utility class that encapsulates typical operations.
ArithmeticJavaUtility
0 likes · 14 min read

This article presents a comprehensive collection of frequently used Spring framework utility classes—including Assert, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, ReflectionUtils, and AopUtils—explaining their purpose, typical use cases, and providing code snippets for each method to help developers avoid redundant implementations.
AOPJavaReflection
0 likes · 18 min read

This article introduces the Hutool Java utility library, outlines its extensive feature set, shows how to add it via Maven, and provides code examples for frequently used utilities such as DateUtil, StrUtil, NumberUtil, MapUtil, SecureUtil, and CaptchaUtil, helping developers boost backend productivity.
CodeExamplesHutoolJava
0 likes · 8 min read

This article explains how to design a flexible TreeNode interface and a TreeUtil class in Java that convert flat collections into hierarchical tree structures, provides multiple static methods for object and JSON tree generation, and discusses optimization techniques for large data sets.
JavaTree StructureUtility
0 likes · 10 min read

This article presents a detailed walkthrough of the TreeUtil class, demonstrating how to construct hierarchical tree structures from flat lists, define tree nodes in Java, perform generic and functional implementations of makeTree, traverse trees using pre‑order, level‑order and post‑order methods, flatten trees back to lists, and sort tree nodes recursively, all illustrated with complete code examples.
DataStructureFlattenJava
0 likes · 16 min read

This article introduces a versatile Java TreeUtil class that demonstrates how to construct hierarchical tree structures from flat lists, perform pre-order, level-order, and post-order traversals, flatten trees back to lists, and sort nodes using generic functional interfaces, with detailed code examples.
AlgorithmDataStructureJava
0 likes · 16 min read

This article explains Java's BigDecimal class, covering its purpose for high‑precision arithmetic, common constructors, essential methods such as add, subtract, multiply, divide, comparison, formatting with NumberFormat, handling of division exceptions, and provides a utility class with static arithmetic operations for accurate calculations.
ArithmeticExceptionFormatting
0 likes · 15 min read

This article introduces Java's BigDecimal class, explains its purpose for high-precision arithmetic beyond double's limits, details constructors, common methods, formatting, comparison, and exception handling, and provides practical code examples and a utility class for accurate mathematical operations.
ArithmeticJavaNumberFormat
0 likes · 15 min read

This article presents a detailed overview of Spring's utility classes, covering assertion helpers, object and collection utilities, file and resource I/O methods, as well as reflection and AOP tools, complete with code examples for each feature.
BackendJavaReflection
0 likes · 15 min read

This article explains Java's BigDecimal class, covering its purpose for high‑precision arithmetic, recommended constructors, key arithmetic methods, comparison techniques, formatting with NumberFormat, handling of division exceptions, and best‑practice tips such as using the String constructor and managing immutability.
ArithmeticExceptionFormatting
0 likes · 13 min read

Java's BigDecimal class offers arbitrary‑precision decimal arithmetic, requiring method calls like add, subtract, multiply, and divide instead of operators, and should be instantiated via String or valueOf to avoid double‑precision errors, with careful handling of scaling, rounding, formatting, and comparison for exact financial calculations.
ArithmeticJavaNumberFormat
0 likes · 14 min read

This article explains how to enhance console output in JavaScript by using format specifiers, CSS styling, and a custom prettyLog utility that provides info, error, warning, success, table, and image printing functions, while ensuring the logs run only in development environments.
LoggingStylingUtility
0 likes · 12 min read

The article shows how to generically export any Java object's data to an Excel‑compatible CSV file by using reflection to convert objects into maps, building headers (optionally via a @JcExcelName annotation) and writing the result with a reusable utility class and Maven‑managed Apache POI, FastJSON, and Commons‑IO dependencies, illustrated through SpringBoot controller and main‑method examples.
CSVExcel ExportJava
0 likes · 10 min read

This article explains how to automate unit conversions for Java DTOs by first using a Map to mark fields and an enum for conversion types, then enhancing the solution with a custom annotation and reflection to make the process more reusable and maintainable.
AnnotationsBackendJava
0 likes · 10 min read

This article explains the design and step‑by‑step implementation of two JavaScript utility functions—createPromise for exposing a Promise’s resolve/reject handlers and createRetryPromise for adding configurable retry logic—complete with TypeScript typings, detailed code walkthroughs, and a practical network‑request example.
JavaScriptPromiseRetry
0 likes · 11 min read

This article explains Java's BigDecimal class, covering its purpose for high‑precision arithmetic, the most frequently used constructors, essential instance methods, comparison techniques, formatting with NumberFormat, handling of division exceptions, and a utility class that wraps common operations, all illustrated with concrete code examples.
ArithmeticFormattingJava
0 likes · 15 min read

This article introduces Hutool, a Java utility library that consolidates common enterprise‑level tools such as file handling, encryption, date manipulation, and data conversion, explains its main modules, shows how to add it via Maven, and provides practical code examples for quick integration.
BackendHutoolJava
0 likes · 9 min read

This article introduces the Hutool Java utility library, outlines its extensive modules such as AOP, cache, cron, crypto, and provides installation instructions and code examples for common utilities like DateUtil, StrUtil, NumberUtil, MapUtil, SecureUtil, and CaptchaUtil to boost development efficiency.
HutoolJavaLibrary
0 likes · 10 min read

This article provides a comprehensive overview of Spring’s Assert utilities and a wide range of Spring Framework helper classes—including ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, StreamUtils, ReflectionUtils, and AOP utilities—detailing their purpose and key method signatures for Java backend development.
AOPJavaReflection
0 likes · 13 min read

This article demonstrates how to create a generic utility that uses Java reflection to export lists of arbitrary objects to CSV or Excel files, covering dependency setup, core implementation, custom annotation support, and practical usage examples.
CSV exportExcelJava
0 likes · 11 min read

This article provides an in‑depth tutorial on Java's BigDecimal class, covering its purpose for high‑precision arithmetic, common constructors, usage pitfalls, essential methods, number formatting with NumberFormat, handling of division exceptions, and a recommended utility class for precise calculations.
ArithmeticJavaNumberFormat
0 likes · 15 min read

This article demonstrates how to automatically convert monetary, percentage, permillage and other numeric fields in Java DTOs by marking target properties with a map or a custom annotation, then applying reflection‑based logic to perform scaling, rounding and unit changes in a reusable utility class.
AnnotationsJavaReflection
0 likes · 10 min read

This article explains Java's BigDecimal class, covering its constructors, precise arithmetic operations, formatting techniques, common pitfalls with double values, comparison methods, exception handling, and provides a utility class with comprehensive methods for accurate calculations.
ArithmeticExceptionJava
0 likes · 14 min read

This article introduces a custom BeanConvertUtils class that extends BeanUtils to provide concise, lambda‑friendly conversion of single objects and lists between PO, VO, and DTO types, while highlighting BeanUtils limitations, performance impact, and important usage cautions.
BeanUtilsObject MappingUtility
0 likes · 7 min read

This article introduces a lightweight Java logging utility class named LogUtils that supports four log levels, formats messages, and can output logs to the console or a file, with configurable level, target, and file settings, accompanied by example usage code.
BackendFileIOJava
0 likes · 8 min read

This article explains why using floating‑point types for monetary calculations can cause precision loss, demonstrates the problem with BigDecimal constructors, analyzes the underlying double‑to‑long conversion, and provides a utility class with safe BigDecimal operations for backend Java applications.
Financial-CalculationsUtilitybigdecimal
0 likes · 9 min read

This article examines a real‑world cash‑register failure caused by BigDecimal precision loss, explains why using double or float constructors leads to errors, demonstrates the problem with code samples, and provides a robust utility class for accurate monetary calculations in Java.
JavaMoneyUtility
0 likes · 9 min read

This article explains why using floating‑point types with BigDecimal can cause precision loss in financial calculations, demonstrates the problem with sample code, analyzes the underlying double‑to‑long conversion, and provides a reusable Java utility class to perform accurate arithmetic with BigDecimal.
FinancialJavaUtility
0 likes · 8 min read

This guide shows how to store automated test data in JSON files within the resources folder, read and parse them using FastJSON and Hutool, and also retrieve configuration values from application.properties via ResourceBundle, providing reusable Java utility classes.
File I/OJSONJava
0 likes · 4 min read

This article introduces Spring's Assert utilities, explains the purpose and usage of various Spring‑provided helper classes such as ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, ReflectionUtils, and AOP utilities, and provides code snippets illustrating their typical methods for validation, conversion, and reflection tasks in Java backend development.
AOPJavaReflection
0 likes · 13 min read

This article provides a comprehensive guide to Java's BigDecimal class, covering its purpose for high‑precision arithmetic, recommended constructors, essential methods, formatting techniques, handling of non‑terminating division, and a reusable utility class for accurate mathematical operations.
ArithmeticJavaNumberFormatting
0 likes · 16 min read

This article provides a comprehensive overview of Spring's core utility classes—including Assert, ObjectUtils, StringUtils, CollectionUtils, FileCopyUtils, ResourceUtils, StreamUtils, ReflectionUtils, and AOP helpers—detailing their purpose, key methods, and practical code examples for robust backend development.
AOPBackendJava
0 likes · 16 min read

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

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

This article explains how to bypass Java's private access restrictions using reflection, introduces the core Field and setAccessible APIs, provides a reusable PriUtil wrapper with get/set methods for instance and static members, and demonstrates usage through concrete test classes and scripts.
BackendJavaPrivateFields
0 likes · 8 min read

This article demonstrates how to call third‑party APIs in Java projects by importing the HttpClientUtil utility, performing GET and POST requests (with and without parameters), handling JSON responses with a custom JsonUtils class, and includes complete code examples for each step.
HttpClientJSONJava
0 likes · 12 min read

This article presents a complete Java utility class built on Jedis that simplifies Redis operations, covering connection handling, key management, and full support for strings, lists, hashes, sets, and sorted sets, with a link to the full source on Gitee.
BackendJavaJedis
0 likes · 24 min read

This article introduces a Java OkHttp3 utility class that simplifies HTTP requests for backend developers, covering Maven dependency setup, code implementation with builder pattern, synchronous and asynchronous request methods, header and parameter handling, and usage examples.
Builder PatternHTTPJava
0 likes · 11 min read

Laravel-Quick is an open‑source Laravel package that provides translated validation messages, standardized HTTP status responses, exception handling, Redis‑based cache helpers, and artisan generators, with installation and usage instructions for backend developers.
BackendCacheException
0 likes · 2 min read

The article explains four XML parsing approaches (DOM, SAX, JDOM, DOM4J), highlights the use of Groovy for scripting, provides a sample XML snippet, and presents a complete Groovy/Java utility class that leverages dom4j to parse XML files for backend applications.
BackendDOM4JUtility
0 likes · 6 min read

SpringBoot supports internationalization out of the box; by creating a messages.properties file under resources, configuring the basename in application.yml, and using a MessageUtils wrapper that retrieves MessageSource via SpringUtils, developers can fetch localized messages with a single method call.
SpringUtilityi18n
0 likes · 6 min read

This article introduces the Hutool Java utility library, showing how to install it via Maven and demonstrating 16 frequently used utility classes—including Convert, DateUtil, JSONUtil, StrUtil, and more—with concise code examples that illustrate simplifying common development tasks.
HutoolJavaUtility
0 likes · 13 min read

This article walks through the creation of a Groovy‑compatible JsonPath utility library, explaining its design, key methods for extracting various data types, a custom verification helper, and how to test it later with the Spock framework.
GroovyJSONPathJava
0 likes · 6 min read

This article presents a Java FTP utility class designed for Spring applications, detailing its implementation as a bean, configuration via properties, and methods for uploading, downloading, and deleting files on an FTP server, along with common troubleshooting tips and usage examples.
FTPJavaSpring
0 likes · 11 min read

This tutorial explains how to set up a Maven project, add the ZXing library, implement utility classes for image processing, and write a Java application that creates and decodes QR codes, optionally embedding a logo, with full source code examples.
BackendJavaMaven
0 likes · 14 min read

This article explains how floating‑point arithmetic in Java leads to precision loss, shows that even BigDecimal can suffer the same issue when misused, and provides proper construction methods and a utility class to ensure accurate monetary calculations.
BackendJavaUtility
0 likes · 9 min read

This article presents a reusable Java verification class that centralizes common validation logic for automated testing, handling JSON responses, code checks, numeric and boolean assertions, array detection, and regex matching, while also fixing hidden bugs and extending array validation capabilities.
Automation TestingJSONJava
0 likes · 7 min read

This article introduces a lightweight Java class, ConsoleTable, that formats map and list data into a neatly aligned console grid resembling SQL client output, explains its usage, provides full source code, and discusses stream-based implementations and potential enhancements.
FormattingJavaStream
0 likes · 5 min read

This article introduces a lightweight Groovy TimeWatch utility that lets developers record execution times with customizable markers, offering both millisecond and nanosecond precision, and explains its implementation, usage, and future multithreading considerations.
Code ExampleGroovyJava
0 likes · 6 min read

This article explains the purpose and internal representation of Java's BigDecimal, demonstrates various ways to create instances, walks through key parts of its source code, highlights common pitfalls, and provides a utility class for precise arithmetic operations.
BackendJavaUtility
0 likes · 11 min read

The article presents a Java ConsoleTable class that formats Map and List data into a tidy, SQL‑client‑like grid for console output, explains its implementation details, shows usage examples, and discusses the use of Java Stream APIs.
FormattingJavaStream
0 likes · 5 min read

gobox is a self‑developed lightweight Go framework comprising various utility boxes such as color, crypto, exception, gohttp, golog, and gomisc, with detailed explanations of its origin, naming, supported modules, and extensive code examples demonstrating usage for logging, error handling, slice deduplication, file checks, JSON handling, and time utilities.
GoLibraryUtility
0 likes · 9 min read

This guide introduces the Mica-Core utility class, showcasing a comprehensive collection of shortcut methods for assertions, string manipulation, collection handling, encoding, cryptography, JSON processing, reflection, bean operations, and date-time utilities, all designed to boost Java backend development efficiency.
BackendJavaMica-Core
0 likes · 15 min read

This article introduces the open‑source Chinese Java utility library Hutool, explains how to add it via Maven, demonstrates practical code examples such as HTTP form submission, HTML escaping, and scheduled tasks, and encourages developers to explore its extensive, well‑documented APIs.
BackendCode ExampleHutool
0 likes · 6 min read
