# spring-boot-utils **Repository Path**: liuzhaopk/spring-boot-utils ## Basic Information - **Project Name**: spring-boot-utils - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-05 - **Last Updated**: 2021-06-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Spring boot 1 and spring boot 2 compatible utils. Search the latest version in the cnetral repository : [Search](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22io.github.hengyunabc%22%20AND%20a%3A%22spring-boot-utils%22) ```xml io.github.hengyunabc spring-boot-utils $version ``` ## 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. ```java TestConfig testConfig = BinderUtils.bind(environment, "ttt", TestConfig.class); ```