Parent 模块
guava-parent-starter — 父级 BOM,统一管理依赖版本。
基本信息
| 属性 | 值 |
|---|---|
| 工程名 | guava-parent-starter |
| 类型 | BOM(Bill of Materials) |
| 作用 | 统一版本管理,子模块无需指定版本 |
核心功能
依赖版本管理
通过 libs.versions.toml 集中管理所有依赖版本:
toml
[versions]
spring-boot = "3.5.14"
spring-cloud = "2025.0.2"
nacos = "2025.0.0.0"
mybatis-plus = "3.5.16"子模块引入依赖时无需指定版本:
kotlin
dependencies {
implementation(libs.spring.boot.starter.web)
implementation(libs.mybatis.plus.spring.boot3.starter)
}统一依赖
| 类别 | 管理内容 |
|---|---|
| Spring 全家桶 | Spring Boot、Spring Cloud、Spring Cloud Alibaba |
| 数据库 | MySQL、MyBatis-Plus、Redis |
| 工具库 | Lombok、Hutool、EasyExcel、Commons |
| 安全 | JWT、Jasypt、BouncyCastle |
| 监控 | SkyWalking、Logback |