Skip to content

fmjsjx/myboot

Repository files navigation

myboot

A boot library provides some additional extensions based on SpringBoot.

添加依赖

每个release版本都将发布至Maven中央仓库

添加Maven依赖

pom.xml

<pom>
  <dependencyManagement>
    <dependencies>
      <!-- 版本控制 -->
      <dependency>
        <groupId>com.github.fmjsjx</groupId>
        <artifactId>myboot-bom</artifactId>
        <version>3.2.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>

添加Gradle依赖

Groovy DSL

repositories {
    mavenCentral
}

dependencies {
    // 版本控制
    implementation platform('com.github.fmjsjx:myboot-bom:3.2.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'
}

Kotlin DSL

repositories {
    mavenCentral()
}

dependencies {
    // 版本控制
    implementation(platform("com.github.fmjsjx:myboot-bom:3.2.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")
}

About

A boot library provides some additional extensions based on SpringBoot.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages