xmagic-boot-parent使用说明
当前版本 1.0.8
JDK版本 JDK17
SpringBoot版本 3.3.7
使用
xmagic-boot-parent,包含了SpringBoot的依赖和三方依赖,可用作根项目。
- 包含SpringBoot的包依赖版本统一管理
- 包含xmagic-dependencies、xmagic-boot-dependencies的三方包依赖版本统一管理
- 用于SpringBoot项目
- 包含已预置常用的依赖
Maven
xml
<parent>
<parent>
<artifactId>xmagic-boot-parent</artifactId>
<groupId>tech.xmagic</groupId>
<version>${xmagic1-boot-parent.version}</version>
<relativePath/>
</parent>
</parent>预置依赖
xml
<dependencies>
<!--默认依赖必要的包-->
<!--hutool-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
</dependency>
<!--lombok-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>provided</scope>
</dependency>
<!-- slf4j -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<!-- logback -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
</dependency>
<!-- logback -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</dependency>
<!--springboot starter需要的包-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<!--SpringBootDev开发用包-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<!--yml配置文件自动生成元数据提示-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<!--SpringBoot测试-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>Gradle
groovy