@@ -44,7 +44,7 @@ repositories {
44
44
}
45
45
46
46
dependencies {
47
- implementation 'io.github.topikachu:propertysource-reload-spring-boot-starter:0.0.3 '
47
+ implementation 'io.github.topikachu:propertysource-reload-spring-boot-starter:0.0.4 '
48
48
}
49
49
```
50
50
53
53
<dependency >
54
54
<groupId >io.github.topikachu</groupId >
55
55
<artifactId >propertysource-reload-spring-boot-starter</artifactId >
56
- <version >0.0.3 </version >
56
+ <version >0.0.4 </version >
57
57
</dependency >
58
58
```
59
59
@@ -78,13 +78,13 @@ Other available Spring Boot bootstrap configuration parameter:
78
78
propertysource.reload.poll-interval=5s
79
79
propertysource.reload.strategy=refresh_environment
80
80
propertysource.reload.max-wait-for-shutdown=2s
81
+ propertysource.reload.max-wait-for-system-exit=10s
81
82
propertysource.reload.ignore-resource-not-found=true
82
83
propertysource.reload.ignore-resource-load-error=true
83
84
```
84
85
Once the content of the configuration file specified in ` propertysource.reload.properties-files ` is change, the application is reload automatically.
85
86
86
87
# Reload Strategy
87
- There are four strategies
88
88
1 . refresh_scope
89
89
This is the default strategy. Execute ` ContextRefresher.refresh() ` .
90
90
1 . refresh_environment
@@ -94,6 +94,8 @@ There are four strategies
94
94
1 . exit_application_force
95
95
Execute [ ` SpringApplication.exit() ` ] ( https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/SpringApplication.html#exit-org.springframework.context.ApplicationContext-org.springframework.boot.ExitCodeGenerator...- )
96
96
and [ ` System.exit() ` ] ( https://docs.oracle.com/javase/8/docs/api/java/lang/System.html#exit-int- )
97
+ 1 . restart
98
+ Set ` management.endpoint.restart.enabled=true ` to enable this strategy. See ` RestartEndpoint#restart ` for details.
97
99
98
100
# PropertySourceReloadEvent
99
101
There's a ` PropertySourceReloadEvent ` fired after each reload. To receive this event
0 commit comments