Java Captain
Author

Java Captain

Focused on Java technologies: SSM, the Spring ecosystem, microservices, MySQL, MyCat, clustering, distributed systems, middleware, Linux, networking, multithreading; occasionally covers DevOps tools like Jenkins, Nexus, Docker, ELK; shares practical tech insights and is dedicated to full‑stack Java development.

1.2k
Articles
0
Likes
5.7k
Views
0
Comments
Recent Articles

Latest from Java Captain

100 recent articles max
Java Captain
Java Captain
Aug 22, 2025 · Backend Development

Designing Clean API Responses in Java: From JSON Structure to Global Wrappers

This article explains how to design a standardized JSON response format for Java back‑end APIs, introduces a Result wrapper class, and shows how to automate response wrapping using a custom @ResponseResult annotation, interceptors, and Spring's ResponseBodyAdvice for cleaner, more maintainable code.

BackendJSON responseJava
0 likes · 7 min read
Designing Clean API Responses in Java: From JSON Structure to Global Wrappers
Java Captain
Java Captain
Aug 20, 2025 · Information Security

Build a Secure Spring Boot App in Minutes with Spring Security

This tutorial walks you through adding Spring Security to a Spring Boot project, from adding the starter dependency and creating a simple controller to observing the default login page, understanding the auto‑generated password mechanism, and customizing usernames and passwords for production use.

AuthenticationAuthorizationJava
0 likes · 9 min read
Build a Secure Spring Boot App in Minutes with Spring Security
Java Captain
Java Captain
Aug 6, 2025 · Fundamentals

Unlock Java 17: Records, Sealed Classes, Pattern Matching and More

This article explores the major Java 17 language enhancements—including records, sealed classes, pattern matching, text blocks, var, and the new switch expression—showing how they reduce boilerplate, improve readability, and boost performance compared to legacy Java 8 code.

JDK 17JavaSealed Classes
0 likes · 13 min read
Unlock Java 17: Records, Sealed Classes, Pattern Matching and More
Java Captain
Java Captain
Jul 22, 2025 · Information Security

How to Unlock a Banned WeChat Account in 2025: Step‑by‑Step Self‑Unblock and Appeal Guide

This comprehensive 2025 guide explains how to identify temporary versus permanent WeChat bans, walk you through the four‑step self‑unblock process, detail the required materials for manual appeals, and provide troubleshooting tips and long‑term protection strategies to safely recover your account.

2025Account UnblockAppeal Process
0 likes · 12 min read
How to Unlock a Banned WeChat Account in 2025: Step‑by‑Step Self‑Unblock and Appeal Guide
Java Captain
Java Captain
Jul 16, 2025 · Backend Development

How to Deploy Graylog with Docker‑Compose and Integrate It into Spring Boot

Learn how to set up Graylog for centralized log aggregation using Docker‑Compose, configure its inputs, and seamlessly integrate it with a Spring Boot application via Logback‑GELF, including necessary code snippets, configuration files, and query examples for efficient log searching.

DockerGraylogSpring Boot
0 likes · 7 min read
How to Deploy Graylog with Docker‑Compose and Integrate It into Spring Boot
Java Captain
Java Captain
Jul 16, 2025 · Backend Development

Ensuring Transaction Rollback in Multi‑Threaded Spring Batch Inserts

This article explains why the @Transactional annotation fails in multithreaded Spring batch insert scenarios, demonstrates the problem with code examples, and shows how to use SqlSession for manual commit and rollback to guarantee atomicity across all threads.

JavaMyBatisSpring
0 likes · 10 min read
Ensuring Transaction Rollback in Multi‑Threaded Spring Batch Inserts
Java Captain
Java Captain
Jul 12, 2025 · Operations

Master JVM Tuning: Practical Guide to Setting Memory and GC Parameters

This article walks through essential JVM memory and garbage‑collection settings, explaining each flag—such as -Xms, -Xmx, -XX:NewSize, and GC options—through a concrete example on an 8 GB server, and provides a complete command line configuration for optimal performance and OOM diagnostics.

Garbage CollectionJVMJava
0 likes · 7 min read
Master JVM Tuning: Practical Guide to Setting Memory and GC Parameters
Java Captain
Java Captain
Jul 10, 2025 · Information Security

How a Young Developer Made 7 Million Yuan Selling Illegal Video‑Piracy Software

A 90‑born programmer created illegal video‑transfer software that bypassed watermark and originality checks on platforms like TikTok and Kuaishou, earning over 7 million yuan in less than a year before being sentenced to three years in prison, highlighting a criminal supply chain in China’s short‑video industry.

Chinacybercrimeinformation security
0 likes · 3 min read
How a Young Developer Made 7 Million Yuan Selling Illegal Video‑Piracy Software
Java Captain
Java Captain
Jul 10, 2025 · Backend Development

Mastering AOP in Spring Boot: From Basics to Practical Code

This article explains Aspect Oriented Programming, contrasts it with Object Oriented Programming, illustrates cross‑cutting concerns with real‑world examples, and provides a step‑by‑step guide—including Maven dependencies, annotation definitions, and execution expressions—to implement AOP in a Spring Boot application.

AOPJavaSpring Boot
0 likes · 6 min read
Mastering AOP in Spring Boot: From Basics to Practical Code