A boot library provides some additional extensions based on SpringBoot.
每个release版本都将发布至Maven中央仓库
pom.xml
<pom>
<dependencyManagement>
<dependencies>
<!-- 版本控制 -->
<dependency>
<groupId>com.github.fmjsjx</groupId>
<artifactId>myboot-bom</artifactId>
<version>3.3.3</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:3.3.3')
// 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:3.3.3"))
// REDIS
implementation("com.github.fmjsjx:myboot-starter-redis") {
// 移除同步连接池依赖
exclude(group = "org.apache.commons", module = "commons-pool2")
}
// MongoDB
compileOnly("com.github.fmjsjx:myboot-starter-mongodb")
}