Understanding the SPI Mechanism in Dubbo Extensions

Understanding the SPI Mechanism in Dubbo Extensions

1. What is SPI 1.1 Introduction to SPI SPI, which stands for Service Provider Interface, is a service discovery mechanism. It automatically loads the classes defined in files located in the META-INF/services directory on the ClassPath. This mechanism enables extensibility for many frameworks, such as Dubbo and JDBC. Let’s start with a simple example to … 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 provided JAR file is automatically placed in the /root/resume/ directory, with the filename: … Read more

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