This is a starter collection that springboot integrates multiple third-party frameworks
Use third-party packages to basically cover the latest version
The code inside should more or less help you
If you can learn some techniques or techniques from it, please give it a star
MockMvc and WebclientTest tests cover most functions
Test case execution usage testcontainers-java
Please raise an issue if necessary
project structure
|--spring-boot-example
|--buildSrc(Gradle custom plugin)
|--gradle/libs.versions.toml(gradle Catalog dependency management)
|--spring-auto-service(SpringBoot automatic assembly file generator)
|--spring-boot-example
|--spring-boot-extension-autoconfigure(Spring boot automatic assembly)
|--spring-boot-extension-starters(starter bundle)
|--spring-boot-extension-tests(test bundle)
|--spring-extension-bom(BOM)
|--spring-extension-commons(General Basic Toolkit)
|--spring-extension-context(Expand the core)
|--spring-extension-dependencies(Depends on versioning)
|--spring-extension-testcontainers(testcontainers test kits)
Project-related version control
Maven
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.github.livk-cloud</groupId>
<artifactId>spring-extension-dependencies</artifactId>
<version>${version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
Gradle
dependencies {
implementation platform("io.github.livk-cloud:spring-extension-dependencies:$version")
}
Use only the dependencies of the current project
Maven
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.github.livk-cloud</groupId>
<artifactId>spring-extension-bom</artifactId>
<version>${version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
Gradle
dependencies {
implementation platform("io.github.livk-cloud:spring-extension-bom:$version")
}
JetBrains - Thanks a lot for supporting spring-boot-extension project.