Spring AI brings artificial‑intelligence capabilities to the Spring Boot ecosystem, offering model support, vector‑database integration, SQL‑like filtering, and easy Maven configuration, enabling Java developers to add generative AI, semantic search, and AI‑driven image generation to their backend applications.
This guide demonstrates how to leverage Maven resource filtering for automatic property expansion in Spring Boot 3.2.5, configure externalized settings via spring.main and system properties, customize configuration file locations, activate profiles, set parent containers, modify DispatcherServlet paths, enable Tomcat access logs, MBean registry, and generate build and Git metadata.
This article explains how to design a clean, maintainable Spring Boot backend by applying core software principles, organizing modules such as core, common, business, and admin, and providing complete Maven pom examples to illustrate a modular multi‑module project layout.
This guide explains why SpringBoot JARs become bulky when many dependencies are included, shows how to inspect the packaged libraries, and provides step‑by‑step Maven configurations and runtime commands to build a leaner JAR that loads external libs only when needed, dramatically speeding up deployment.
This guide walks you through the fundamentals of Java Spring Boot projects, explains WAR vs JAR deployment, sets up Maven and Jenkins, configures SSH and DingTalk notifications, and provides a complete CI/CD pipeline with scripts for automated builds and releases.
This guide walks you through setting up Jenkins to pull code from GitLab, build a SpringBoot 3 Java project with Maven, back up and copy JAR files to a remote server, and perform rolling updates of Docker Swarm services, all with step‑by‑step instructions and code snippets.
This article introduces the Maven Helper plugin, explains how to install it both online and offline in IntelliJ IDEA, and demonstrates its key features for simplifying Maven dependency management, conflict resolution, and project packaging, helping developers focus on coding rather than build complexities.
This article details Kuaishou's engineering architecture governance process, covering project background, IDEA performance bottlenecks, cloud‑based IDE solutions, MavenHelper and custom Maven plugins for dependency analysis, handling NoClassDefFoundError issues, and static‑dynamic class dependency detection to improve backend build efficiency.
This article explains how to lower the learning curve of DDD and CQRS by using structured, standardized, and templated approaches, introduces a Maven archetype for rapid project scaffolding, and demonstrates an IntelliJ IDEA plugin that auto‑generates boilerplate code for aggregate roots, commands, queries, and related components.
IntelliJ IDEA 2024.1 introduces full‑line code completion powered by a local deep‑learning model, Java 22 language support, a revamped terminal, sticky lines in the editor, enhanced Maven handling, improved debugging, richer Spring assistance, advanced HTTP client features, and new database tools, all aimed at boosting developer productivity and safety.
This article explains how to build a Maven‑based tool that scans a Java codebase, removes trivial getter and setter methods, adds Lombok’s @Data annotation, and rewrites the source files using JavaParser, complete with implementation steps, code examples, and usage instructions.
Graceful Response is a Spring Boot library that provides unified response wrapping, global exception handling, custom error codes, validation support, and configurable response styles, enabling developers to write cleaner controller code, reduce boilerplate, and improve API consistency.
This article explains how to implement IP‑location lookup by recommending the free ip2region offline library, provides Maven dependency details, shows step‑by‑step Java code for loading the XDB file, querying an IP address, interpreting the result format, and highlights its high accuracy and cross‑region support.
This article analyses the challenges of protecting intellectual property in B2B Java applications, reviews existing obfuscation and encryption tools, and proposes a lightweight Maven‑based encryption plus javaagent decryption scheme that secures both proprietary code and third‑party dependencies while keeping performance impact below five percent.
The article presents a Java Spring solution that uses a custom URLClassLoader to dynamically load, register, and unload governance task JARs as Spring beans and XXL‑Job handlers at runtime, with configuration persistence via YAML or Nacos and Maven Shade packaging for seamless updates without service restarts.
Graceful Response is a Spring Boot component that provides unified response wrapping, global exception handling, and custom error codes, helping developers reduce boilerplate, improve code readability, and accelerate API development while maintaining consistent error responses.
This article presents a developer‑centric guide to designing a Java code‑optimization tool that automatically replaces trivial getter/setter methods with Lombok’s @Data annotation, detailing the scanning, filtering, modification steps, JavaParser usage, Maven integration, and practical usage instructions.
The solution introduces a plug‑in architecture that uses a custom URLClassLoader to load governance task JARs at runtime, registers their Spring beans and @XxlJob handlers with XXL‑Job, and provides unload logic to deregister jobs, destroy beans, and update configuration via YAML or Nacos without restarting the service.
This article explains how to package a Spring Boot application so that its dependencies are stored externally and loaded at runtime using Maven plugins and the PropertiesLauncher, enabling easy replacement of individual libraries without rebuilding the entire fat jar.
This guide walks through installing Jenkins and Nexus via Docker, configuring a Maven hosted repository in Nexus, setting up Jenkins credentials and plugins, and creating a Jenkins pipeline that builds a Maven project and publishes its artifacts to Nexus, enabling automated CI/CD for Java applications.
This guide demonstrates how to set up a Maven project with the Fabric8 Kubernetes Java client, configure minimal kubeconfig or ServiceAccount credentials, and use sample code to list namespaces, illustrating essential steps for connecting Java applications to a Kubernetes cluster with minimal configuration.
This article explains Maven dependency conflicts, their causes, resolution principles like path-nearest and declaration-first, and practical solutions including exclusions, optional dependencies, dependency management, and the Maven Helper plugin for analyzing and fixing jar version clashes.
This article explains how to create a Spring Boot fat‑jar that externalizes its dependencies by configuring the spring‑boot‑maven‑plugin and maven‑assembly‑plugin to produce a ZIP layout, then uses the PropertiesLauncher with loader.path to load libraries from a separate libs directory at runtime.
This article explains how to protect Java server-side code from decompilation by applying ProGuard shrinking/obfuscation and Xjar/ClassFinal encryption, provides detailed Maven plugin configurations, sample pom.xml snippets, command‑line launch options, and demonstrates the resulting protected JARs with screenshots.
This article explains how to protect Java applications from decompilation by configuring a ProGuard file and adding the ProGuard Maven plugin, then building the project to generate an obfuscated JAR, complete with step‑by‑step instructions and sample configuration code.
This article explains how to obtain a client’s IP address from an HttpServletRequest, convert it to a geographic location using the ip2region library, and provides multiple Java implementation options, Maven dependencies, and performance testing commands for efficient backend IP lookup.
Maven’s version ranges let you specify acceptable artifact versions, but open‑ended ranges like [2.3.0,) cause Maven to fetch the newest matching release, leading to nondeterministic builds and potential incompatibilities, so you should pin exact versions and use dependencyManagement for consistent, stable builds.
This article covers Java backend architecture fundamentals, including front‑end/back‑end separation, Maven configuration, distributed lock implementations with Redis and Zookeeper, session handling in distributed systems, database locking strategies, and useful code snippets for common patterns.
When Maven’s archetype plugin hangs during project generation, you can resolve it by specifying archetypeCatalog=internal or local as a command-line or VM option, placing a downloaded archetype-catalog.xml in ~/.m2, or configuring a domestic mirror in settings.xml, after which generation completes in seconds.
This article explains why manual property copying in Java is inefficient, compares several runtime bean‑copy utilities, and demonstrates how MapStruct provides a compile‑time, type‑safe, high‑performance solution for shallow and deep object mapping, including handling of collections and ignored fields.
This article introduces PowerJob, a Java‑based enterprise distributed task scheduler, outlines its key features, installation methods, step‑by‑step server and client setup, task creation, and detailed configuration options for robust backend job management.
This article explains how to use Maven profiles and the Maven Assembly Plugin to create environment‑specific Spring Boot zip packages and provides a reusable shell script (shenniu_publish.sh) for extracting, starting, stopping, and restarting the packaged JAR on Linux, improving deployment efficiency.
This guide explains how to troubleshoot and fix the UnsupportedOperationException caused by missing or outdated ASM libraries when upgrading the JDK, covering removal of old Maven dependencies, adding the correct ASM version, updating Groovy and related plugins, and disabling the Log4j shutdown hook warning.
This article introduces mybatis-plus-generator-ui, a highly customizable web‑based code generator built on MyBatis‑Plus that supports multiple databases, offers interactive UI for generating Entity, Mapper, Service, Controller and other layers, and provides detailed usage, configuration, and extension instructions for Java backend developers.
This guide explains how to protect Spring Boot production packages from reverse engineering by applying code obfuscation with ProGuard and full encryption using the ClassFinal Maven plugin, including configuration steps, encrypted startup commands, machine‑binding activation, and the resulting decompilation behavior.
This article explains Maven's inheritance and aggregation features, including the super POM, parent POM configuration, module aggregation syntax, reactor build order, dependency management, property definitions, and useful command‑line options, all illustrated with a simple multi‑module demo.
This article explains Maven’s dependency management by covering how to configure dependencies in pom.xml, the concepts of direct and transitive dependencies, scope definitions, conflict resolution, circular‑dependency risks, and the Maven build lifecycle with practical XML examples and visual illustrations.
This tutorial walks through creating a Maven project via archetype or IDE, explains the standard directory layout, breaks down the essential elements of a pom.xml—including coordinates, dependencies, and versioning conventions—and shows how to package and run an executable JAR using the shade plugin.
This article explains why upgrading to JDK 17 is essential, outlines the long‑term support, performance gains from modern garbage collectors like ZGC, new language features such as switch expressions and records, and provides detailed migration steps, Maven and Spring Boot configuration, and troubleshooting tips for a smooth transition.
This article explains how to create a reusable Maven archetype for Spring Boot applications, covering the definition and benefits of scaffolding, step‑by‑step template preparation, archetype generation, artifact adjustments, publishing to a repository, and using the scaffold to quickly start new microservice projects.
This guide explains how to protect a Spring Boot application from reverse engineering by configuring ProGuard to obfuscate compiled class files, adding the necessary Maven plugin settings, and verifying the resulting obfuscated JAR.
This article explains Java compilation and decompilation basics, introduces the JD‑GUI decompiler, and provides a step‑by‑step guide to protect Java applications by configuring ProGuard and integrating it into a Maven build, including sample configuration files and common pitfalls.
This article examines the benefits of moving from JDK 11 to the long‑term support JDK 17, detailing performance gains—especially sub‑millisecond ZGC pause times—new language features, compatibility considerations, benchmark results, and step‑by‑step migration instructions for Spring‑based applications.
This article introduces Hutool, a comprehensive Java utility library that consolidates common functions such as file handling, encryption, date manipulation, and more, explains its key modules, shows how to add it via Maven, and provides practical code examples for utilities like DateUtil, StrUtil, NumberUtil, and SecureUtil.
This article explains why a Spring Boot application runs with the configured port when packaged as a JAR using the embedded Tomcat, but switches to Tomcat's default port and context path when deployed as a WAR, and provides step‑by‑step instructions to package and deploy both formats along with historical context and technical differences.
This article explains how to use Maven profiles and the maven‑assembly‑plugin to create a zip package for a Spring Boot application, and provides a reusable shell script (shenniu_publish.sh) for deploying, starting, stopping, and managing the service on Linux.
This article explains what unit testing is, why it’s essential, and provides a step‑by‑step guide for writing Java unit tests with JUnit, integrating them into Maven projects, and generating detailed coverage reports using IDE features and JaCoCo.
This article introduces Hutool, a versatile Java utility library that consolidates common functions such as file handling, encryption, caching, and more, provides Maven installation instructions, and demonstrates practical code examples for date, string, number, map, security, and captcha utilities.
This guide explains how to install the IDEA Maven Helper plugin, use its Dependency Analyzer to detect and exclude conflicting Maven dependencies, and provides alternative methods such as IDEA Diagrams and Maven commands for managing Java project dependencies.
This article introduces Lombok, explains how it leverages Java's annotation‑processing (JSR‑269) and abstract syntax tree (AST) modifications to generate boilerplate code at compile time, and provides a step‑by‑step guide to manually implement a @Getter annotation processor with full Maven project examples.
This article explains how to protect Java applications from reverse engineering by using ProGuard for code obfuscation, detailing the creation of a proguard.cfg file, Maven plugin configuration, and the build process to generate an obfuscated JAR.
This tutorial walks you through creating a Spring Cloud Alibaba project from scratch using IntelliJ IDEA and Maven, covering parent project setup, module creation, pom.xml configuration, a simple Spring Boot application, a Hello World controller, and how to run and verify the service.
This article documents a comprehensive migration from JDK 8 to JDK 17, detailing new language and JVM features, step‑by‑step upgrade procedures, Maven and SpringBoot version changes, performance benchmarking, and ZGC‑based garbage‑collection tuning to dramatically reduce pause times.
After a Java system went live, a disk usage alert exceeding 90% prompted an investigation that uncovered a third‑party jar’s debug‑level Log4j configuration writing large logs to the root directory, and the issue was resolved by excluding the offending jar via Maven, highlighting the need for careful dependency management.
This article documents a comprehensive upgrade from JDK 8 to JDK 17, detailing new language and JVM features, evaluation criteria for selecting services, step‑by‑step migration of Maven settings, dependencies, SpringBoot and middleware, performance testing results, and ZGC‑focused garbage‑collector tuning.
This article explains the differences between JAR and WAR files, why Spring Boot runs with an embedded Tomcat when packaged as a JAR, how deployment changes when using an external Tomcat, and provides step‑by‑step instructions with Maven configurations to build Spring Boot applications as either JAR or WAR packages.
This article explains the three main Maven dependency principles—shortest‑path priority, declaration order priority, and override priority—illustrates them with concrete examples and code snippets, describes common conflict errors, and outlines the complete Maven dependency loading workflow.
This article introduces the JXLS library for Java, explains how to add Maven dependencies, provides backend utility and controller code for exporting Excel files, and details template creation and common JXLS expressions such as jx:area, jx:each, jx:mergeCells, and dynamic column handling.
This article introduces the Hutool Java utility library, outlines its many modules and features, shows how to add it via Maven, and provides practical code examples for date, string, number, map, encryption, and captcha utilities to help developers avoid reinventing the wheel.
This guide compiles a comprehensive set of IntelliJ IDEA configurations and shortcuts—including SVN change indicators, multi‑project windows, Tomcat UTF‑8 fixes, import settings, compilation speed tweaks, global encoding, serialVersionUID generation, Maven/Tomcat setup, file exclusion, language injection, and quote wrapping—to streamline Java backend development.
Spring Cloud 2023.0 (Leiden) milestone, built on Spring Boot 3.2, introduces updated dependencies, repository configurations, and early support for MVC Server in Spring Cloud Gateway, enhanced Kafka Streams handling in Spring Cloud Stream, Java HttpClient in OpenFeign, and upgraded Kubernetes integration, with source code and deployment links provided.
This tutorial walks through a complete, step‑by‑step setup of a one‑click CI/CD pipeline that installs Docker and Jenkins on CentOS, configures Maven, creates a Jenkins job, builds a Spring Boot JAR, packages it into a Docker image, and runs the container, providing all commands and screenshots for a seamless deployment experience.
This guide walks through building a reusable Maven archetype scaffold from a Spring Boot template, covering template preparation, Maven configuration, archetype generation, publishing to a repository, and using the scaffold to quickly create new backend projects.
A Java developer added fastjson to a SkyWalking agent for JSON conversion, causing class‑loading conflicts in a SpringBoot 2 application; the article analyzes the root cause, demonstrates debugging steps, explains the parent‑delegation mechanism, and presents solutions using Maven shade relocation or switching to Gson, with practical lessons for avoiding similar issues.
This article analyzes how adding Fastjson to a SpringBoot agent causes classloader conflicts that prevent GenericHttpMessageConverter from loading, explains the underlying parent‑delegation mechanism, and presents solutions such as using Maven Shade to rename packages or switching to a lightweight JSON library like Gson.
JSONCompareUtils, a full‑JSON comparison component added to the Artemis framework, lets automated tests recursively compare large JSON responses via a Maven‑provided library with Java and Python wrappers, streamlining service‑splitting, BC‑traffic, and cross‑environment validation while dramatically cutting manual verification effort and speeding regression testing.
This article explains common Maven JAR dependency conflict scenarios and presents four practical solutions—including using Exclusions, configuring dependency scopes, applying the Maven Shade plugin for class relocation, and employing class‑loader isolation strategies—to help developers choose the appropriate method for their build and runtime environments.
This article introduces the open‑source MapStruct library, shows how to configure Maven and Lombok dependencies, defines entity and DTO classes with Lombok annotations, creates a mapper interface, and demonstrates simple, list, multi‑source, and default‑value mappings with complete code examples.
This article explains why Java applications should migrate from JDK 8 to JDK 17, introduces GraalVM native‑image technology, provides detailed upgrade procedures, Maven configuration, code examples, and a summary of performance benefits and typical issues encountered during the migration.
This article introduces BeetlSQL's recent updates—including Oracle12Style support and a version upgrade—provides the Maven dependency configuration, lists the wide range of databases it works with, and presents detailed benchmark comparisons against other ORM frameworks.
This article provides a comprehensive collection of IntelliJ IDEA configuration tips covering SVN change visibility, opening projects in new windows, fixing Tomcat Chinese character encoding, adjusting import display, speeding up compilation, setting global file encodings, generating serialVersionUID, customizing code templates, and various other IDE shortcuts and settings.
This article starts from a conventional three‑layer architecture, refines it into a domain‑driven design (DDD) application structure, demonstrates the evolution through five concrete steps, and shows how to package the final architecture as a reusable Maven Archetype with detailed installation and usage instructions.
This article introduces the Pie framework, a Java-based implementation of the responsibility‑chain design pattern, demonstrates how to integrate it with Maven, shows step‑by‑step code examples for handlers, outbound factories, bootstrapping, and global exception handling, and explains its benefits for clean, maintainable backend development.
maven‑mvnd, an Apache‑backed build tool that embeds Maven and leverages GraalVM, speeds up Java project compilation by reusing JVM processes, caching plugin classloaders, and retaining JIT‑generated code, with parallel module builds and simple mvn‑to‑mvnd command substitution, though JDK version quirks may require workarounds.
This article explains the differences between JAR and WAR packaging for Spring Boot applications, shows why embedded Tomcat behaves differently from external Tomcat, and provides step‑by‑step instructions with Maven commands and pom.xml modifications to build both JAR and WAR artifacts.
Learn how to set up a complete CI/CD pipeline on CentOS 7 by installing Docker and Jenkins, configuring Maven, creating Dockerfiles, and automating the build, test, and deployment of a Spring Boot application with detailed commands, screenshots, and best‑practice tips.
This guide explains what a scaffolding tool is, why it’s essential for micro‑service development, and provides step‑by‑step instructions for creating, publishing, and using a Maven archetype scaffold with Spring Boot, including Maven configuration, version handling, and repository deployment.
This article explains how to reduce the size of SpringBoot executable JAR files by separating application classes from dependency libraries, configuring the Maven build to use a ZIP layout, and deploying the slimmed package with a custom loader path, thereby speeding up uploads and updates.
This article explains how to set up Docker on Windows, integrate it with IntelliJ IDEA, build and run a Spring Boot application inside a container, and connect the containerized service to a Redis instance, including configuration, Maven plugin setup, and troubleshooting steps.
This article guides you through refining a classic three‑layer architecture into a domain‑driven design, structuring the project with Maven Archetype, and implementing a simple CMS with both backend (Spring Boot) and frontend (Vue) components, complete with step‑by‑step setup instructions.
This guide walks you through installing Jenkins and Nexus via Docker, configuring a Maven hosted repository in Nexus, adding necessary Jenkins plugins and credentials, and creating a Jenkins pipeline that builds a Java project and publishes its artifacts to Nexus, enabling automated CI/CD for your applications.
This article explains how Spring Boot's parent POM configures Maven resource filtering, uses the @ delimiter for variable substitution in YAML and properties files, and demonstrates multi‑profile activation to manage environment‑specific settings during build and packaging.
This tutorial walks through setting up a CentOS 7 environment, installing Docker CE, deploying Jenkins in a Docker container, configuring Maven and required plugins, creating a Jenkins pipeline that builds a SpringBoot project, packages it into a Docker image via a Dockerfile, and runs the container automatically, providing full end‑to‑end CI/CD automation.
This article provides a step‑by‑step guide on how to integrate Dubbo with SpringBoot to enable the gRPC protocol, covering project structure, Maven BOM dependencies, protobuf generation, service implementation, configuration details, and the differences between Dubbo‑enabled gRPC and native gRPC.
This article explains how to manage Maven dependencies, understand transitive, optional, and excluded dependencies, configure dependency scopes, navigate the Maven build lifecycle, use plugins, and set up module aggregation, inheritance, properties, versioning, environment profiles, and a private Nexus repository for Java projects.
This article introduces the open‑source MapStruct library for Java, shows how to configure Maven, defines entity and DTO classes, demonstrates basic and advanced mapping techniques—including list conversion, multi‑object merging, and default values—while providing complete code examples and explanations.
This guide walks you through analyzing a Spring Boot microservice project, configuring Maven parent and child POM files, packaging the required modules, and deploying both the backend JAR and the frontend assets on Windows or Linux servers using simple command‑line tools.
This article provides a step‑by‑step tutorial on analyzing a Spring Boot microservice project, configuring parent and child Maven pom files, packaging modules with Maven plugins, and deploying both backend JARs and frontend assets to Windows or Linux servers.
This article explains why simple timing is unreliable in Java due to JIT compilation, introduces the official JMH tool for microbenchmarking, outlines best‑practice tips, demonstrates how to set up a Maven project, write benchmark code, run tests, interpret results, and details each JMH annotation.
This article explains how to use Spring's profile‑specific configuration files, package a multi‑module Java project with Maven or IDEA, and deploy the resulting JAR on a Linux server by installing JDK, setting environment variables, and starting the application in foreground or background.
This article explains why a Spring Boot project runs differently when packaged as a JAR versus a WAR, outlines the historical evolution of Java web containers, compares the characteristics of JAR and WAR files, and provides step‑by‑step Maven commands and pom.xml configurations for building both package types.
This step‑by‑step guide shows how to install Docker and Jenkins on CentOS, configure Jenkins plugins and Maven, create a freestyle job that pulls a Spring Boot project from Git, builds it with Maven, packages it into a Docker image, and runs the container automatically.
This article explains how to use Spring's dynamic profile configuration to separate environment-specific YAML files, demonstrates jar and IDE launch options, outlines Maven and IDEA packaging steps, and provides detailed instructions for installing Java, configuring environment variables, and deploying the packaged Spring Boot application on a server.
This article introduces the popular microservice stacks, explains Quarkus’s advantages, shows three ways to create a Quarkus project, demonstrates local development and port configuration, and provides a step‑by‑step Jenkins CI pipeline for building and running the application.
This article introduces Java Agent technology, explains the differences between premain and agentmain modes, demonstrates how to build, package, and attach agents using Maven and the Attach API, and shows practical bytecode manipulation techniques with Instrumentation and Javassist, complete with code examples.
This tutorial walks through enabling Docker remote connections on Linux and Windows, installing and configuring the IntelliJ IDEA Docker plugin, adding a docker‑maven‑plugin to a Spring Boot Eureka project, building Docker images, creating containers with port mapping, and setting up one‑click deployment for rapid backend development.
This article introduces MapStruct, a compile‑time Java bean‑mapping code generator, explains its core concepts, shows step‑by‑step examples—including Maven dependencies, entity and DTO definitions, mapper interfaces, custom conversions, and advanced configurations—while comparing its performance to other copy utilities and highlighting deep‑copy behavior.
This article explains how to build a generic Java utility that exports any list of objects to an Excel‑compatible CSV file by using reflection to extract field names for headers and values for rows, includes Maven dependencies, custom annotations, and practical usage examples.
This article introduces Flyway as a database migration solution, explains its versioned, undo and repeatable migrations, details common commands, shows Maven and YAML configuration for Spring Boot, provides sample SQL migration scripts and logs, and highlights paid‑only features.
This article explains why Maven runs unit tests during the package phase, describes the problems caused by missing production database access, and provides five practical methods—including command‑line flags, pom.xml configuration, IDE settings, and Maven runner options—to skip tests when building a Java project.