Skip to content

selfancy/apollo-client-refresh-configbean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduce

Support for apollo-client to dynamic auto refresh @ConfigurationProperties bean.

See about: Apollo

QuickStart

1. Import dependency

Maven:

<dependency>
    <groupId>com.github.selfancy</groupId>
    <artifactId>apollo-client-refresh-configbean</artifactId>
    <version>${RELEASE_VERSION}</version>
</dependency>

Gradle:

implementation "com.github.selfancy:apollo-client-refresh-configbean:${RELEASE_VERSION}"

2. Annotated at SpringBoot ConfigurationProperties Bean

Both required annotation @DynamicProperties and @ConfigurationProperties.

Sample:

@Data
@DynamicProperties
@ConfigurationProperties("sample")
public class SampleProperties {
    
    private int timeout;
}

ChangeList

  • 1.0.1.RELEASE (2024-02-06)

  • 1.0.0.RELEASE (2021-03-30)

    • Init

License

http://www.apache.org/licenses/LICENSE-2.0