SpringBoot + SPI Mechanism: Easily Implement Pluggable Components

SpringBoot + SPI Mechanism: Easily Implement Pluggable Components

What is Java SPI Java SPI (Service Provider Interface) is a service provider interface that is a service discovery and loading mechanism provided by Java, allowing developers to define multiple implementations for an interface and dynamically discover and load these implementations at runtime. The core of the Java SPI mechanism is that it provides a … Read more

Advanced Java Network Programming: Basics of HTTP Protocol and Web Development

Advanced Java Network Programming: Basics of HTTP Protocol and Web Development

Advanced Java Network Programming: Basics of HTTP Protocol and Web Development In this article, we will delve into the HTTP protocol and learn how to perform simple web development using Java. As a basic user, you will understand the fundamental concepts of HTTP and how to create a simple HTTP server using Java. What is … Read more

Installing JDK on Linux

Installing JDK on Linux

Java development is a fundamental skill that Linux experts must master. This article will introduce how to install JDK on Linux and configure the Java environment. (This article uses jdk-8u201-linux-x64.tar.gz as an example) 1. Uninstall the pre-installed JDK (most Linux distributions come with Java, but it may not be usable) 1) Check the installed JDK: … Read more

DevOps: Deploying Java on Linux

DevOps: Deploying Java on Linux

Environment Requirements Four Ways to Deploy Java Services on Linux (Including Environment Dependencies and Start/Stop Instructions) This article provides four methods for deploying Java services, compatible with JDK 21, detailing the environment dependencies, start, stop, and restart operations for each method. The JAR file provided in this example has been automatically placed in the /root/resume/ … Read more

Installing JDK 8 on CentOS Linux

Installing JDK 8 on CentOS Linux

Preparation Server: CentOS Linux release 7.9.2009 (Core) JDK: jdk-8u301-linux-x64.tar.gz JDK 8 download link:https://www.oracle.com/java/technologies/downloads/#java8 Installation Connect to the server using Xshell. Upload to the server, you can use the command # rz upload, -y to overwrite files rz -y If prompted that the command ‘rz’ is not found, install it manually # rz is a file … Read more

Practical Java Security Encryption: A Guide to HTTPS Configuration and Certificate Management Based on National Secret Algorithms

Practical Java Security Encryption: A Guide to HTTPS Configuration and Certificate Management Based on National Secret Algorithms

Practical Java Security Encryption: A Guide to HTTPS Configuration and Certificate Management Based on National Secret Algorithms Last year, when I took over a government cloud project, the client suddenly stated, “Must support national secret algorithms.” My team and I stared blankly at the native SSLContext in JDK for half an hour—this thing doesn’t recognize … Read more

Using Java and DeepSeek to Effectively Call AI Models

Using Java and DeepSeek to Effectively Call AI Models

Using Java and DeepSeek to Effectively Call AI Models This article discusses how to use Java to call AI models, especially the recently popular DeepSeek-R1. You may have heard that the DeepSeek model has a long reasoning chain, strong inference capabilities, and is free to use, running quickly on local machines. On the Python side, … Read more

Constructing a Webshell Based on the SPI Mechanism

Constructing a Webshell Based on the SPI Mechanism

Disclaimer: The user is responsible for any direct or indirect consequences and losses caused by the dissemination and use of the information provided by this public account. The public account and the author bear no responsibility for this. Please bear the consequences yourself! If there is any infringement, please inform us, and we will delete … Read more

Introduction to Java Networking: Creating a Weather Plugin with HttpClient

Introduction to Java Networking: Creating a Weather Plugin with HttpClient

Click the little blue text to follow! Hello everyone, today I will take you to play with something interesting—using Java to get weather forecasts! Don’t worry, this is not some profound technology; it’s just sending a network request to fetch some data. Remember those weather apps quietly sitting on your phone? The core principle behind … Read more

How to Upgrade from Java 8 to Java 12: Benefits and Troubleshooting Tips

How to Upgrade from Java 8 to Java 12: Benefits and Troubleshooting Tips

Author: Trisha Gee Translator: Zhang Weibin Key Points Since Java 8, many useful new language features, tools, and performance improvements (especially related to garbage collection optimizations) have been introduced. When choosing to upgrade, we face the decision of whether to upgrade to the latest Java (12) and prepare for upgrades every six months, or to … Read more