How to Quickly Switch to Smart-Servlet with Spring Boot Fat Jar

This article introduces the smart-servlet web container, outlines its key features, provides step‑by‑step instructions for replacing Tomcat with smart-servlet in a Spring Boot fat‑jar project, and highlights the related smart-socket framework and ecosystem components.

Java Architecture Diary
Java Architecture Diary
Java Architecture Diary
How to Quickly Switch to Smart-Servlet with Spring Boot Fat Jar

1. Introduction

smart-servlet is a web container that implements the Servlet 3.1 specification, supports isolated multi‑application deployment, and operates as a plugin‑based container with a sandbox that ensures minimal runtime; users can extend its services via custom plugins.

2. Product Features

Domestic lineage: 100% in‑house full‑stack core technology.

Excellent performance: built on the latest communication micro‑kernel smart‑socket.

Secure and reliable: strictly follows protocol specifications and supports encrypted transmission.

Simplified usage: supports War, Jar, SpringBoot, maven‑plugin and other modes, fully compatible with Tomcat.

3. Quick Switch

Note: The example uses a Spring Boot fat jar, version 2.7.13.

3.1 Exclude Tomcat dependency

<!-- exclude tomcat dependency -->
<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-web</artifactId>
  <version>${spring.boot.version}</version>
  <exclusions>
    <exclusion>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-tomcat</artifactId>
    </exclusion>
  </exclusions>
</dependency>

3.2 Add smart-servlet

<dependency>
  <groupId>org.smartboot.servlet</groupId>
  <artifactId>smart-servlet-spring-boot-starter</artifactId>
  <version>0.3</version>
</dependency>

Then start the service as usual.

4. smart-socket Introduction

smart-socket is a 100% self‑developed open‑source communication framework that enhances AIO implementation for superior performance and stability, achieving high rankings in the TechEmpower Web Framework Benchmarks.

5. smart Ecosystem

Leveraging the smart-socket foundation, the community has expanded to include smart-http, smart-servlet, and smart-mqtt components, further enhancing functionality and applicability such as high‑performance HTTP services and reliable IoT messaging.

6. Summary

The article also references several Nacos migration plugins and notes that smart-servlet currently does not support Spring Boot 3.x due to the Jakarta servlet API change, but hopes for continued improvements.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

plugin architectureSpring BootWeb Containersmart-servlet
Java Architecture Diary
Written by

Java Architecture Diary

Committed to sharing original, high‑quality technical articles; no fluff or promotional content.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.