Tag

Java

1 views collected around this technical thread.

macrozheng
macrozheng
Jun 13, 2025 · Backend Development

Why MyBatis-Plus saveBatch Triggers Unexpected Transaction Rollback and How to Fix It

This article explains a puzzling Spring Boot transaction rollback caused by MyBatis-Plus's saveBatch method, reproduces the error with nested @Transactional calls, analyzes why the rollback flag is set, and offers a practical workaround by replacing the framework batch operation with a custom mapper implementation.

BackendJavaMyBatis-Plus
0 likes · 6 min read
Why MyBatis-Plus saveBatch Triggers Unexpected Transaction Rollback and How to Fix It
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 13, 2025 · Backend Development

Turn a Spring Boot CRUD App into an AI‑Powered Service with Model Context Protocol

This guide shows how to integrate Spring Boot with the Model Context Protocol (MCP) to let large language models interact with existing services via natural language, covering entity definitions, Maven dependencies, configuration, tool annotations, and testing to create an AI‑enabled book management API.

AI integrationBackendJava
0 likes · 18 min read
Turn a Spring Boot CRUD App into an AI‑Powered Service with Model Context Protocol
Java Architect Essentials
Java Architect Essentials
Jun 13, 2025 · Backend Development

Mastering Activiti: Build and Deploy a Multi‑Level Approval Workflow in Minutes

This article walks through designing, deploying, and executing a multi‑level leave‑approval workflow using the Activiti BPM engine, covering BPMN diagram creation, Spring Boot configuration, Java code for process initiation and task handling, database tables, key services, and best‑practice development steps.

ActivitiBPMNBackend
0 likes · 23 min read
Mastering Activiti: Build and Deploy a Multi‑Level Approval Workflow in Minutes
macrozheng
macrozheng
Jun 12, 2025 · Backend Development

Accelerate Spring Boot API Development with magic-api: A Hands‑On Guide

This tutorial shows how Java developers can use the magic‑api framework to rapidly create Spring Boot CRUD APIs without writing Controllers, Services, or DAOs, covering Maven setup, configuration, database schema, code‑free endpoint design, validation, transactions, Swagger integration, and deployment.

API DevelopmentCRUDJava
0 likes · 11 min read
Accelerate Spring Boot API Development with magic-api: A Hands‑On Guide
Java Captain
Java Captain
Jun 12, 2025 · Backend Development

How to Securely Encrypt Nacos Config Passwords in Spring Cloud Applications

Learn how to replace plain‑text passwords in Spring Cloud’s Nacos configuration with encrypted values by extending NacosConfigProperties, overriding its initialization, and registering a custom bootstrap auto‑configuration, ensuring your application complies with corporate security policies.

ConfigurationJavaNacos
0 likes · 5 min read
How to Securely Encrypt Nacos Config Passwords in Spring Cloud Applications
Architect's Guide
Architect's Guide
Jun 12, 2025 · Backend Development

How to Build QR Code Login with WebSocket in Spring Boot

This tutorial walks through designing a QR‑code login flow, defining a token table, outlining client and server roles, implementing two REST endpoints, configuring Spring Boot WebSocket support, and handling real‑time login notifications with Java and JavaScript code examples.

JavaJavaScriptQR code login
0 likes · 13 min read
How to Build QR Code Login with WebSocket in Spring Boot
Code Ape Tech Column
Code Ape Tech Column
Jun 12, 2025 · Information Security

How to Build Single Sign‑On (SSO) with CAS and Session Sharing in Java

This article explains why multiple independent login systems hurt user experience and security, reviews traditional session mechanisms and their limitations in clustered environments, and then presents two session‑sharing strategies and a complete CAS‑based SSO solution with Java code examples.

AuthenticationCASJava
0 likes · 15 min read
How to Build Single Sign‑On (SSO) with CAS and Session Sharing in Java
Java Architect Essentials
Java Architect Essentials
Jun 12, 2025 · Backend Development

Simplify Spring Boot Extensions with Concept Plugin 2: A Plug‑in Guide

Concept Plugin 2 introduces a lightweight, annotation‑driven plug‑in system for Spring Boot that separates core business logic from device integration code, enabling independent testing, dynamic loading, and easy configuration through a management UI, while supporting various injection patterns, nested dependencies, and Spring features.

Dependency InjectionJavaModular Design
0 likes · 10 min read
Simplify Spring Boot Extensions with Concept Plugin 2: A Plug‑in Guide
Continuous Delivery 2.0
Continuous Delivery 2.0
Jun 12, 2025 · Backend Development

Why Over‑Engineering and Bad Code Kill Your Project—and How to Fix It

This article reveals how common bad coding practices such as over‑engineering, hidden business logic in utility classes, deep inheritance trees, excessive DTO layers, unnecessary interfaces, and contract‑less microservices degrade team efficiency and project quality, and offers concrete, principle‑driven remedies.

Javaanti-patternsbackend development
0 likes · 8 min read
Why Over‑Engineering and Bad Code Kill Your Project—and How to Fix It
Zhuanzhuan Tech
Zhuanzhuan Tech
Jun 11, 2025 · Backend Development

Transform JSON Seamlessly with Jolt: From Hard‑Coded Logic to Configurable Rules

This article introduces Jolt, an open‑source Java library for JSON‑to‑JSON transformation, explains its advantages over traditional hard‑coded conversion, demonstrates core operations and custom extensions with code examples, shows how to integrate it into Spring Boot, and outlines future plans for a visual drag‑and‑drop configuration tool.

Data mappingJSON transformationJava
0 likes · 17 min read
Transform JSON Seamlessly with Jolt: From Hard‑Coded Logic to Configurable Rules
Selected Java Interview Questions
Selected Java Interview Questions
Jun 11, 2025 · Backend Development

Master Java Enums: Eliminate if/else and Boost Code Quality

This article revisits Java's enum type, explaining its definition, constructors, methods, and practical uses such as replacing if/else logic, implementing interfaces, enhancing type safety, and applying enums in switch statements and singleton patterns, complete with code examples and best‑practice tips.

Design PatternsEnumJava
0 likes · 9 min read
Master Java Enums: Eliminate if/else and Boost Code Quality
Top Architect
Top Architect
Jun 11, 2025 · Backend Development

How I Refactored a Bloated Open‑Source Admin into a Lean Backend Solution

The author shares a personal journey from early backend work to full‑stack responsibilities, critiques heavyweight admin frameworks, and explains how they rebuilt a lightweight enterprise admin using MyBatisPlus, Lombok, and streamlined architecture, while outlining future enhancements such as email, payment, multi‑tenant, and distributed scheduling.

BackendJavaLombok
0 likes · 9 min read
How I Refactored a Bloated Open‑Source Admin into a Lean Backend Solution
Architect's Tech Stack
Architect's Tech Stack
Jun 11, 2025 · Backend Development

Master Dynamic Data Permissions in Java with easy-data-scope

This tutorial walks you through building a Spring Boot project that uses the easy-data-scope library to inject dynamic SQL for fine‑grained data permissions, covering database setup, Maven dependencies, core annotations, custom rule implementation, and practical query examples.

Data PermissionJavaMyBatis
0 likes · 11 min read
Master Dynamic Data Permissions in Java with easy-data-scope
Java Captain
Java Captain
Jun 11, 2025 · Backend Development

Master Java Stream API: From Basics to Advanced Operations

This comprehensive guide explains the Java Stream API, covering its purpose, creation methods, intermediate and terminal operations, and the Optional class, with clear examples and code snippets to help developers write cleaner, more efficient functional-style code.

Functional ProgrammingJavaOptional
0 likes · 22 min read
Master Java Stream API: From Basics to Advanced Operations
Java Captain
Java Captain
Jun 11, 2025 · Backend Development

How to Import Modules and Build JAR Files in IntelliJ IDEA

This step‑by‑step guide shows how to create an IntelliJ IDEA project, import a Java module into it, associate the module with the project, and then package the application into a JAR file using the IDE’s Project Structure and Artifacts settings.

IDE tutorialIntelliJ IDEAJAR packaging
0 likes · 6 min read
How to Import Modules and Build JAR Files in IntelliJ IDEA
Java Architect Essentials
Java Architect Essentials
Jun 10, 2025 · Backend Development

Why Rebuild a Distributed Scheduler? Inside a Custom Java Job Framework

This article explains the motivations behind creating a new distributed scheduling framework, compares existing solutions, and details the design choices—including gRPC communication, protobuf serialization, a custom NameServer for load balancing, and a built‑in message queue with persistence and retry mechanisms—to handle frequent task creation and dynamic parameter changes in a high‑concurrency environment.

JavaMessage Queuedistributed scheduling
0 likes · 14 min read
Why Rebuild a Distributed Scheduler? Inside a Custom Java Job Framework
Selected Java Interview Questions
Selected Java Interview Questions
Jun 10, 2025 · Backend Development

Boost Your Spring Boot CRUD with MyBatisPlusPro: A Complete Guide

This article walks you through creating a reusable BaseController using MyBatisPlusPro, including dependency setup, utility methods for reflection, a generic CRUD controller, pagination configuration, and how to extend it in your own Spring Boot applications.

BaseControllerCRUDJava
0 likes · 9 min read
Boost Your Spring Boot CRUD with MyBatisPlusPro: A Complete Guide
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Jun 10, 2025 · Backend Development

Why Is Your Kafka Consumer Slow? Proven Strategies to Boost Throughput

This article explains why Kafka consumers often become bottlenecks—due to complex processing, resource constraints, or sub‑optimal configuration—and provides concrete steps such as profiling Java code, simplifying logic, using background threads, scaling consumer instances, and tuning key consumer parameters.

BackendConsumerDocker Compose
0 likes · 4 min read
Why Is Your Kafka Consumer Slow? Proven Strategies to Boost Throughput
Java Captain
Java Captain
Jun 10, 2025 · Backend Development

Why Spring Batch? Real‑World Scenarios, Core Architecture and Hands‑On Guide

This article explains the necessity of batch processing, presents typical use cases such as daily interest calculation, e‑commerce order archiving, log analysis and medical data migration, then dives deep into Spring Batch's core components, provides step‑by‑step code examples, performance‑tuning tips, production‑grade fault‑tolerance, monitoring solutions and a comprehensive FAQ.

Batch ProcessingData IntegrationJava
0 likes · 20 min read
Why Spring Batch? Real‑World Scenarios, Core Architecture and Hands‑On Guide
Java Captain
Java Captain
Jun 10, 2025 · Fundamentals

Understanding Java Monitors: How Thread Synchronization Works

Java monitors provide a mechanism for thread synchronization by associating each object with a monitor lock, comprising an entry list, owner thread, and wait set, and the article explains their structure, thread state transitions, and demonstrates usage with a practical code example.

ConcurrencyJavaMonitor
0 likes · 6 min read
Understanding Java Monitors: How Thread Synchronization Works