spring-boot-utils}

spring-boot-utils

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

io.github.hengyunabc
ArtifactId

ArtifactId

spring-boot-utils
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

spring-boot-utils}
spring-boot-utils
Source Code Management

Source Code Management

http://github.com/hengyunabc/spring-boot-utils/tree/master/spring-boot-utils

Download spring-boot-utils

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.hengyunabc/spring-boot-utils/ -->
<dependency>
    <groupId>io.github.hengyunabc</groupId>
    <artifactId>spring-boot-utils</artifactId>
    <version>0.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.hengyunabc/spring-boot-utils/
implementation 'io.github.hengyunabc:spring-boot-utils:0.0.1'
// https://jarcasting.com/artifacts/io.github.hengyunabc/spring-boot-utils/
implementation ("io.github.hengyunabc:spring-boot-utils:0.0.1")
'io.github.hengyunabc:spring-boot-utils:jar:0.0.1'
<dependency org="io.github.hengyunabc" name="spring-boot-utils" rev="0.0.1">
  <artifact name="spring-boot-utils" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.hengyunabc', module='spring-boot-utils', version='0.0.1')
)
libraryDependencies += "io.github.hengyunabc" % "spring-boot-utils" % "0.0.1"
[io.github.hengyunabc/spring-boot-utils "0.0.1"]

Dependencies

provided (4)

Group / Artifact Type Version
io.github.hengyunabc » spring-boot-utils-common Optional jar 0.0.1
io.github.hengyunabc » spring-boot-1-utils Optional jar 0.0.1
io.github.hengyunabc » spring-boot-2-utils Optional jar 0.0.1
org.springframework.boot : spring-boot-starter Optional jar 1.5.14.RELEASE

Project Modules

There are no modules declared in this project.

Spring boot 1 and spring boot 2 compatible utils.

Search the latest version in the cnetral repository : Search

<dependency>
    <groupId>io.github.hengyunabc</groupId>
    <artifactId>spring-boot-utils</artifactId>
    <version>$version</version>
</dependency>

Conditional Annotation

  • @ConditionalOnSpringBoot1
  • @ConditionalOnSpringBoot2

BinderUtils

org.springframework.boot.bind.RelaxedDataBinder only exists in spring boot 1.

org.springframework.boot.context.properties.bind.Binder on exists in spring boot 2.

BinderUtils support both spring boot 1 and spring boot 2.

TestConfig testConfig = BinderUtils.bind(environment, "ttt", TestConfig.class);

Versions

Version
0.0.1