refactor(web): 拆分 web 模块

This commit is contained in:
liquor
2025-05-20 14:58:38 +00:00
committed by Charles7c
parent adaf475835
commit 9c6182e028
34 changed files with 123 additions and 49 deletions

View File

@@ -16,7 +16,7 @@
<!-- Web 模块 --> <!-- Web 模块 -->
<dependency> <dependency>
<groupId>top.continew</groupId> <groupId>top.continew</groupId>
<artifactId>continew-starter-web</artifactId> <artifactId>continew-starter-web-core</artifactId>
</dependency> </dependency>
<!-- 缓存模块 - Redisson --> <!-- 缓存模块 - Redisson -->

View File

@@ -37,10 +37,17 @@
<version>${revision}</version> <version>${revision}</version>
</dependency> </dependency>
<!-- Web 模块 --> <!-- Web 模块 - 核心模块 -->
<dependency> <dependency>
<groupId>top.continew</groupId> <groupId>top.continew</groupId>
<artifactId>continew-starter-web</artifactId> <artifactId>continew-starter-web-core</artifactId>
<version>${revision}</version>
</dependency>
<!-- Web 模块 - 增强支持模块 -->
<dependency>
<groupId>top.continew</groupId>
<artifactId>continew-starter-web-support</artifactId>
<version>${revision}</version> <version>${revision}</version>
</dependency> </dependency>

View File

@@ -24,10 +24,10 @@
<artifactId>spring-data-commons</artifactId> <artifactId>spring-data-commons</artifactId>
</dependency> </dependency>
<!-- Web 模块 --> <!-- Web 模块 - 增强支持模块 -->
<dependency> <dependency>
<groupId>top.continew</groupId> <groupId>top.continew</groupId>
<artifactId>continew-starter-web</artifactId> <artifactId>continew-starter-web-support</artifactId>
</dependency> </dependency>
<!-- 数据访问模块 - 核心模块 --> <!-- 数据访问模块 - 核心模块 -->

View File

@@ -23,7 +23,7 @@
<!-- Web 模块 --> <!-- Web 模块 -->
<dependency> <dependency>
<groupId>top.continew</groupId> <groupId>top.continew</groupId>
<artifactId>continew-starter-web</artifactId> <artifactId>continew-starter-web-core</artifactId>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

View File

@@ -14,7 +14,7 @@
<!-- Web 模块 --> <!-- Web 模块 -->
<dependency> <dependency>
<groupId>top.continew</groupId> <groupId>top.continew</groupId>
<artifactId>continew-starter-web</artifactId> <artifactId>continew-starter-web-core</artifactId>
</dependency> </dependency>
<!-- 缓存模块 - Redisson --> <!-- 缓存模块 - Redisson -->

View File

@@ -16,7 +16,7 @@
<!-- Web 模块 --> <!-- Web 模块 -->
<dependency> <dependency>
<groupId>top.continew</groupId> <groupId>top.continew</groupId>
<artifactId>continew-starter-web</artifactId> <artifactId>continew-starter-web-core</artifactId>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>

View File

@@ -13,10 +13,16 @@
<description>ContiNew Starter 链路追踪模块</description> <description>ContiNew Starter 链路追踪模块</description>
<dependencies> <dependencies>
<!-- Web 模块 --> <!-- Servlet API -->
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
</dependency>
<!-- 核心模块 -->
<dependency> <dependency>
<groupId>top.continew</groupId> <groupId>top.continew</groupId>
<artifactId>continew-starter-web</artifactId> <artifactId>continew-starter-core</artifactId>
</dependency> </dependency>
<!-- TLog轻量级的分布式日志标记追踪神器 --> <!-- TLog轻量级的分布式日志标记追踪神器 -->

View File

@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>top.continew</groupId>
<artifactId>continew-starter-web</artifactId>
<version>${revision}</version>
</parent>
<artifactId>continew-starter-web-core</artifactId>
<description>ContiNew Starter Web 模块 - 核心模块</description>
<dependencies>
<!-- Spring Boot Web提供 Spring MVC Web 开发能力,默认内置 Tomcat 服务器) -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<!-- 移除内置 Tomcat 服务器 -->
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Servlet API -->
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
</dependency>
<!--核心模块-->
<dependency>
<groupId>top.continew</groupId>
<artifactId>continew-starter-core</artifactId>
</dependency>
<!-- JSON 模块 - Jackson -->
<dependency>
<groupId>top.continew</groupId>
<artifactId>continew-starter-json-jackson</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>top.continew</groupId>
<artifactId>continew-starter-web</artifactId>
<version>${revision}</version>
</parent>
<artifactId>continew-starter-web-support</artifactId>
<description>ContiNew Starter Web 模块 - 增强支持模块</description>
<dependencies>
<!--web 模块 - 核心模块-->
<dependency>
<groupId>top.continew</groupId>
<artifactId>continew-starter-web-core</artifactId>
</dependency>
<!-- Undertow 服务器(采用 Java 开发的灵活的高性能 Web 服务器,提供包括阻塞和基于 NIO 的非堵塞机制) -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
</dependency>
<!-- Graceful ResponseSpring Boot技术栈下的优雅响应处理组件可以帮助开发者完成响应数据封装、异常处理、错误码填充等过程提高开发效率提高代码质量 -->
<dependency>
<groupId>com.feiniaojin</groupId>
<artifactId>graceful-response</artifactId>
</dependency>
<!-- API 文档模块 -->
<dependency>
<groupId>top.continew</groupId>
<artifactId>continew-starter-api-doc</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>

View File

@@ -9,46 +9,12 @@
<version>${revision}</version> <version>${revision}</version>
</parent> </parent>
<packaging>pom</packaging>
<artifactId>continew-starter-web</artifactId> <artifactId>continew-starter-web</artifactId>
<description>ContiNew Starter Web 模块</description> <description>ContiNew Starter Web 模块</description>
<dependencies> <modules>
<!-- Spring Boot Web提供 Spring MVC Web 开发能力,默认内置 Tomcat 服务器) --> <module>continew-starter-web-core</module>
<dependency> <module>continew-starter-web-support</module>
<groupId>org.springframework.boot</groupId> </modules>
<artifactId>spring-boot-starter-web</artifactId>
<!-- 移除内置 Tomcat 服务器 -->
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Undertow 服务器(采用 Java 开发的灵活的高性能 Web 服务器,提供包括阻塞和基于 NIO 的非堵塞机制) -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
</dependency>
<!-- Graceful ResponseSpring Boot技术栈下的优雅响应处理组件可以帮助开发者完成响应数据封装、异常处理、错误码填充等过程提高开发效率提高代码质量 -->
<dependency>
<groupId>com.feiniaojin</groupId>
<artifactId>graceful-response</artifactId>
</dependency>
<!-- API 文档模块 -->
<dependency>
<groupId>top.continew</groupId>
<artifactId>continew-starter-api-doc</artifactId>
<optional>true</optional>
</dependency>
<!-- JSON 模块 - Jackson -->
<dependency>
<groupId>top.continew</groupId>
<artifactId>continew-starter-json-jackson</artifactId>
</dependency>
</dependencies>
</project> </project>