Tag

SpringBoot

0 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
Code Ape Tech Column
Code Ape Tech Column
Jun 13, 2025 · Backend Development

5 SpringBoot Multi‑Tenant Architecture Patterns You Must Know

This article explains multi‑tenancy as a software architecture pattern, describes why it reduces operational costs and improves resource utilization, and presents five concrete SpringBoot designs—including separate databases, shared databases with separate schemas, shared tables, shared‑table with tenant ID, and a hybrid model—along with implementation steps, code samples, pros and cons, and suitable scenarios.

Backend ArchitectureDatabase IsolationMulti-tenancy
0 likes · 41 min read
5 SpringBoot Multi‑Tenant Architecture Patterns You Must Know
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
Architect
Architect
Jun 11, 2025 · Backend Development

Why SpringBoot 3.0 Dropped spring.factories and What to Use Instead

SpringBoot 3.0 removes the long‑standing spring.factories file due to performance, modularity, and GraalVM native image challenges, introduces a new imports‑file mechanism, and provides detailed migration steps, code examples, performance comparisons, and best practices for GraalVM integration.

Auto‑ConfigurationGraalVMMigration
0 likes · 21 min read
Why SpringBoot 3.0 Dropped spring.factories and What to Use Instead
Architecture Digest
Architecture Digest
Jun 9, 2025 · Backend Development

How to Embed FolkMQ in SpringBoot: A Tiny 7 MB Message Middleware

This article introduces FolkMQ, a pure Chinese message middleware, explains its lightweight 7 MB embedded version with a web console, and provides step‑by‑step integration instructions, configuration files, code samples, testing procedures, and a link to a complete SpringBoot example.

Embedded MiddlewareFolkMQJava
0 likes · 6 min read
How to Embed FolkMQ in SpringBoot: A Tiny 7 MB Message Middleware
Code Ape Tech Column
Code Ape Tech Column
Jun 9, 2025 · Backend Development

Build a Unified SpringBoot Tree Utility for Menus, Comments, and More

This guide explains how to design a database schema with optional tree_path, define a generic ITreeNode interface, implement a versatile TreeNodeUtil class in SpringBoot, and demonstrates comprehensive tests—including building, filtering, and path generation—for reusable multi‑level structures such as menus, comments, departments, and categories.

BackendDatabase DesignJava
0 likes · 12 min read
Build a Unified SpringBoot Tree Utility for Menus, Comments, and More
Architect's Tech Stack
Architect's Tech Stack
Jun 4, 2025 · Backend Development

Retrofit Spring Boot Starter: Lightweight HTTP Client Integration with Advanced Features

This article introduces the Retrofit Spring Boot Starter, a lightweight HTTP client framework for Spring Boot that simplifies HTTP request handling, supports custom OkHttpClient injection, annotation‑based interceptors, logging, retry, error decoding, circuit‑breaker integration, connection‑pool management, global interceptors, microservice calls, and flexible call adapters and converters.

HTTPJavaRetrofit
0 likes · 19 min read
Retrofit Spring Boot Starter: Lightweight HTTP Client Integration with Advanced Features
Top Architect
Top Architect
Jun 4, 2025 · Backend Development

Replacing Tomcat with Undertow in Spring Boot: Configuration, Performance Comparison, and Recommendations

This article explains how to replace the default embedded Tomcat container in Spring Boot with Undertow, details the configuration steps and Maven dependencies, compares performance and memory usage between the two servers, and concludes with a recommendation for high‑concurrency applications, while also promoting related AI resources and services.

BackendJavaPerformance
0 likes · 10 min read
Replacing Tomcat with Undertow in Spring Boot: Configuration, Performance Comparison, and Recommendations
Selected Java Interview Questions
Selected Java Interview Questions
Jun 3, 2025 · Artificial Intelligence

Implementing OCR in Java with SpringBoot and Tess4j

This article demonstrates how to build a lightweight OCR service in Java using SpringBoot and the Tess4j library, covering dependency setup, Tesseract engine initialization, RESTful API creation, training data options, and deployment considerations.

Image ProcessingJavaRESTful API
0 likes · 7 min read
Implementing OCR in Java with SpringBoot and Tess4j
Architect's Guide
Architect's Guide
Jun 3, 2025 · Backend Development

Open‑Source Multi‑Platform Novel Content Management System Overview

This article introduces an open‑source novel content management system featuring a front‑end portal, writer and platform back‑ends, and a crawler module, detailing its functional modules, Springboot‑based architecture, installation steps, database setup, crawling methods, and access URLs.

CMSMySQLSpringBoot
0 likes · 5 min read
Open‑Source Multi‑Platform Novel Content Management System Overview
Java Architect Essentials
Java Architect Essentials
May 31, 2025 · Backend Development

Simplifying Spring Boot Environment Configuration with the @Value Annotation

This article explains how the Spring @Value annotation can automatically inject configuration values from property files, support default values and SpEL expressions, and streamline environment-specific settings in Spring Boot applications, while also providing practical code examples and usage tips.

@ValueBackendConfiguration
0 likes · 8 min read
Simplifying Spring Boot Environment Configuration with the @Value Annotation
Java Architect Essentials
Java Architect Essentials
May 27, 2025 · Backend Development

Simplifying API Rate Limiting in SpringBoot with the @RateLimiter Annotation

This article explains how the @RateLimiter annotation in SpringBoot can replace manual, verbose rate‑limiting code with a concise declarative approach, covering basic usage, custom strategies, real‑world examples, and the benefits of reduced complexity and improved system stability.

APIBackendJava
0 likes · 7 min read
Simplifying API Rate Limiting in SpringBoot with the @RateLimiter Annotation
Java Captain
Java Captain
May 27, 2025 · Backend Development

Resolving Thymeleaf Template Not Found Errors in Spring Boot 3.4.3 When Running as a JAR

After encountering Thymeleaf template parsing failures when packaging a Spring Boot 3.4.3 application as a JAR, the author resolves the issue by configuring the template resolver in Java code, disabling Thymeleaf settings in application.yml, and adjusting ModelAndView paths to omit leading slashes.

Backend DevelopmentJavaSpringBoot
0 likes · 3 min read
Resolving Thymeleaf Template Not Found Errors in Spring Boot 3.4.3 When Running as a JAR
Top Architect
Top Architect
May 26, 2025 · Databases

Design and Implementation of MySQL Table Sharding with ShardingSphere and Spring Boot

This article walks through the full process of designing, configuring, and implementing a sharding solution for large loan and repayment tables using ShardingSphere, Spring Boot 3, MySQL, and MyBatis‑Plus, covering schema planning, data migration, DBA coordination, code examples, common pitfalls, and operational considerations.

BackendCodeDatabase
0 likes · 19 min read
Design and Implementation of MySQL Table Sharding with ShardingSphere and Spring Boot
macrozheng
macrozheng
May 26, 2025 · Backend Development

Boost Your Backend Workflow with APIAuto: The Open-Source API Testing Powerhouse

This guide introduces APIAuto, an open-source HTTP API testing and zero-code machine-learning tool that auto-generates documentation, validates parameters, produces client code, and manages test cases, showing how to install it on Nginx and use it with the SpringBoot-based mall project.

API testingBackend DevelopmentOpen Source
0 likes · 5 min read
Boost Your Backend Workflow with APIAuto: The Open-Source API Testing Powerhouse
Java Architect Essentials
Java Architect Essentials
May 25, 2025 · Backend Development

Simplifying Asynchronous Tasks in Spring Boot with @Async Annotation

Spring Boot's @Async annotation enables developers to replace manual thread and thread‑pool management with simple method annotations, providing automatic asynchronous execution, customizable thread pools, and flexible return types such as Future and CompletableFuture, thereby streamlining code, improving efficiency, and reducing complexity in backend services.

@AsyncBackendJava
0 likes · 7 min read
Simplifying Asynchronous Tasks in Spring Boot with @Async Annotation
Java Architect Essentials
Java Architect Essentials
May 24, 2025 · Backend Development

Simplifying RESTful Path Variable Parsing with SpringBoot's @PathVariable Annotation

This article explains how SpringBoot's @PathVariable annotation automatically binds URL path parameters to method arguments, simplifying RESTful API development, reducing boilerplate code, and improving maintainability, with examples and advanced usage tips for developers.

Backend DevelopmentJavaPathVariable
0 likes · 7 min read
Simplifying RESTful Path Variable Parsing with SpringBoot's @PathVariable Annotation
Top Architect
Top Architect
May 24, 2025 · Backend Development

Why Spring Boot Starts Slowly: A Detailed Performance Analysis and Profiling Guide

This article investigates the reasons behind Spring Boot's slow startup by examining the macro initialization flow, pinpointing time‑consuming stages such as environment preparation and bean refresh, and providing profiling code examples to help developers understand and optimize the boot process.

BackendJavaPerformance
0 likes · 15 min read
Why Spring Boot Starts Slowly: A Detailed Performance Analysis and Profiling Guide
Java Architect Essentials
Java Architect Essentials
May 22, 2025 · Backend Development

Using @Valid Annotation for Simplified Form Validation in Spring Boot

This article explains how the @Valid annotation in Spring Boot can automatically enforce bean validation, replace verbose manual checks, support custom validators, and greatly reduce boilerplate code when handling complex form inputs in backend applications.

@ValidBackend DevelopmentJava
0 likes · 8 min read
Using @Valid Annotation for Simplified Form Validation in Spring Boot
macrozheng
macrozheng
May 22, 2025 · Backend Development

Master Activiti: Build a Multi‑Level Approval Workflow with Spring Boot

This guide walks you through designing a multi‑level leave‑approval workflow using Activiti, from drawing the BPMN diagram and configuring the engine to deploying the process, handling tasks, setting variables, and visualizing execution history, all with concise Java code examples and practical tips.

ActivitiBPMNJava
0 likes · 23 min read
Master Activiti: Build a Multi‑Level Approval Workflow with Spring Boot