A boot library provides some additional extensions based on SpringBoot.
| MyBoot 版本 | JDK 版本 | SpringBoot 版本 |
|---|---|---|
| 4.x | JDK 21+ | SpringBoot 4.x |
| 3.x | JDK 17+ | SpringBoot 3.x |
| 2.x | JDK 17+ | SpringBoot 2.x |
| older | JDK 11+ | SpringBoot 2.x |
每个release版本都将发布至Maven中央仓库
pom.xml
<pom>
<dependencyManagement>
<dependencies>
<!-- 版本控制 -->
<dependency>
<groupId>com.github.fmjsjx</groupId>
<artifactId>myboot-bom</artifactId>
<version>4.1.0-RC</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- REDIS -->
<dependency>
<groupId>com.github.fmjsjx</groupId>
<artifactId>myboot-starter-redis</artifactId>
<exclusions>
<exclusion>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- MongoDB -->
<dependency>
<groupId>com.github.fmjsjx</groupId>
<artifactId>myboot-starter-mongodb</artifactId>
</dependency>
</dependencies>
</pom>repositories {
mavenCentral
}
dependencies {
// 版本控制
implementation platform('com.github.fmjsjx:myboot-bom:4.1.0-RC')
// REDIS
implementation('com.github.fmjsjx:myboot-starter-redis') {
// 移除同步连接池依赖
exclude group: 'org.apache.commons', module: 'commons-pool2'
}
// MongoDB
compileOnly 'com.github.fmjsjx:myboot-starter-mongodb'
}repositories {
mavenCentral()
}
dependencies {
// 版本控制
implementation(platform("com.github.fmjsjx:myboot-bom:4.1.0-RC"))
// REDIS
implementation("com.github.fmjsjx:myboot-starter-redis") {
// 移除同步连接池依赖
exclude(group = "org.apache.commons", module = "commons-pool2")
}
// MongoDB
compileOnly("com.github.fmjsjx:myboot-starter-mongodb")
}