Deploying Frontend and Backend Projects on Linux: A Complete Implementation Guide
JDK Installation
Verifying Existing JDK
java -version
Extracting the JDK Package
Navigate to the opt directory where the package was uploaded, then extract it to the designated location:
cd /opt/
tar -zxvf jdk-8u151-linux-x64.tar.gz -C /usr/local/java
Creating the Target Directory
cd /usr/local/
mkdir java
cd /opt
tar -zxvf jdk-8u151-linux-x6 ...
Posted on Wed, 04 Nov 2026 16:39:41 +0000 by illuz1on
Building a Minimal Tomcat-Like Server in Java
An HTTP request sent by a browser contains a method, path, and headers. To represent this server-side, we define a class that parses the raw input stream.
package tomcat;
import java.io.IOException;
import java.io.InputStream;
public class IRequest {
private String url;
private String method;
public IRequest(InputStream inputStre ...
Posted on Tue, 03 Nov 2026 16:54:44 +0000 by Hurklefish
Advanced Nginx Configuration Techniques
While basic Nginx configurations are well-documented, this article explores more advanced techniques to enhance your web server's capabilities.
Resolving Cross-Origin Resource Sharing (CORS)
When managing multiple domains or during development with separate frontend and backend environments, cross-domain issues often arise. Nginx can efficie ...
Posted on Thu, 29 Oct 2026 16:40:25 +0000 by talkster5
Spring MVC DispatcherServlet Internals: Initialization, Request Handling, and View Rendering
DispatcherServlet Initialization
The front controller, responsible for accepting client requests and dispatching them to the appropriate handler. As the entry point of the request processing flow, it implements the Servlet interface. It is essentially a Servlet.
During servlet initialization, the init method is called. Tracing up the parent cl ...
Posted on Tue, 27 Oct 2026 16:11:48 +0000 by Talon
Sharing ServletRequest with Background Threads: Pitfalls and Solutions
Scenario Setup
Consider a minimal Spring Boot controller that offloads work to a simple background thread while passing the incoming HttpServletRequest object:
@GetMapping("/fetchData")
public String fetchData(HttpServletRequest incomingRequest) {
String initialValue = incomingRequest.getParameter("code");
System.out ...
Posted on Sun, 25 Oct 2026 16:45:11 +0000 by Teach
Configuring HTTPS with Spring Boot: Certificate Setup and Server Configuration
Generating SSL Certificates
Before configuring the server, you need to generate a valid SSL certificate. The Java keytool utility provides two common approaches for creating keystores. Choose the method that best fits your security requirements.
The first option uses RSA encryption with a PKCS12 format keystore, which offers broad compatibility ...
Posted on Fri, 23 Oct 2026 16:48:52 +0000 by rv20
Configuring HTTPS in JeecgBoot Application
SSL Certifictae Setup
JeecgBoot uses a custom configuration for TomcatServletWebServerFactory, which requires specific handling when enabling HTTPS. This guide covers the complete setup process.
First, place your SSL certificate (JKS format) into the src/main/resources directory.
Application Configuration
Add the SSL certificate configuration t ...
Posted on Wed, 21 Oct 2026 16:05:48 +0000 by lorne17
Tomcat Virtual Host Configuration, JVM Memory Management, and Memcached Session Clustering
To implement multiple virtual machines in Tomcat, follow these steps:
Modify the configuration file
[root@server conf]# pwd
/usr/local/tomcat/conf
[root@server conf]# vim server.xml
Add the following configuration within the section:
<host appbase="/data/webapps1/" autodeploy="true" name="webapp1.example.com&quo ...
Posted on Sat, 17 Oct 2026 16:25:17 +0000 by uniboy86
Tomcat JVM memory configuration and parameter explanation
In Java web development, correctly configuring Tomcat's memory is crucial for performance. Understanding this requires a grasp of JVM fundamentals, memory management, JVM parameters, and Tomcat-specific settings.
JVM memory management
When an application server starts, all referenced classes are loaded into memory via ClassLoader. JVM memory is ...
Posted on Thu, 15 Oct 2026 16:36:43 +0000 by benz862
Exploring JUC Scheduled, Tomcat, and Fork/Join Thread Pools
1. Scheduled Task Execution with JUC Thread Pools
JUC's ScheduledExecutorService enables tasks to be executed at specific future times or with recurring delays. A common use case involves scheduling a task to run at a fixed point in time, such as every Thursday at 6:00 PM.
To achieve this, first determine the initial delay until the next target ...
Posted on Sat, 10 Oct 2026 16:09:41 +0000 by sdallas411