io.github.vibrantbyte:config-hotload-starter

config hot Loaded starter

License

License

Categories

Categories

Ant Build Tools config Application Layer Libs Configuration
GroupId

GroupId

io.github.vibrantbyte
ArtifactId

ArtifactId

config-hotload-starter
Last Version

Last Version

2.1.6.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

config hot Loaded starter
Source Code Management

Source Code Management

https://github.com/vibrantbyte/spring-boot-starter

Download config-hotload-starter

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.vibrantbyte/config-hotload-starter/ -->
<dependency>
    <groupId>io.github.vibrantbyte</groupId>
    <artifactId>config-hotload-starter</artifactId>
    <version>2.1.6.RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/io.github.vibrantbyte/config-hotload-starter/
implementation 'io.github.vibrantbyte:config-hotload-starter:2.1.6.RELEASE'
// https://jarcasting.com/artifacts/io.github.vibrantbyte/config-hotload-starter/
implementation ("io.github.vibrantbyte:config-hotload-starter:2.1.6.RELEASE")
'io.github.vibrantbyte:config-hotload-starter:jar:2.1.6.RELEASE'
<dependency org="io.github.vibrantbyte" name="config-hotload-starter" rev="2.1.6.RELEASE">
  <artifact name="config-hotload-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.github.vibrantbyte', module='config-hotload-starter', version='2.1.6.RELEASE')
)
libraryDependencies += "io.github.vibrantbyte" % "config-hotload-starter" % "2.1.6.RELEASE"
[io.github.vibrantbyte/config-hotload-starter "2.1.6.RELEASE"]

Dependencies

compile (2)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter jar 2.1.6.RELEASE
org.springframework.cloud : spring-cloud-context jar 2.1.4.RELEASE

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.10

test (2)

Group / Artifact Type Version
org.springframework.boot : spring-boot-starter-test jar 2.1.6.RELEASE
org.apache.commons : commons-lang3 jar 3.8

Project Modules

There are no modules declared in this project.

spring-boot-starter

spring boot project

  • 控制serviceConfigInfo中的spring.config.location属性,再存在的情况下加载,没有的情况下不会报错
  • @EnableConfigurationProperties(ServiceConfigInfo.class)
  • @ConditionalOnProperty("spring.config.location")
  • 控制RefreshResolver配置后顺利返回RefreshResolver的实例,并且后置到Configuration加载完成之后。
  • @AutoConfigureAfter(RefreshResolver.class)
  • @Import(RefreshResolver.class)
  • 配套使用,加载配置文件,实例化ContextRefresher而不是其他实现。(多实现的条件下)
  • @Configuration
  • @ConditionalOnClass(ContextRefresher.class)

Versions

Version
2.1.6.RELEASE
1.0.4
1.0.0