mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Polish "Set Reactor Netty's shutdownQuietPeriod to 0 when using devtools"
See gh-34140
This commit is contained in:
parent
33aef7fe27
commit
70d561a929
@ -35,12 +35,12 @@ public final class ReactorNettyConfigurations {
|
||||
}
|
||||
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties(ReactorNettyConfigurationProperties.class)
|
||||
@EnableConfigurationProperties(ReactorNettyProperties.class)
|
||||
public static class ReactorResourceFactoryConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
ReactorResourceFactory reactorResourceFactory(ReactorNettyConfigurationProperties configurationProperties) {
|
||||
ReactorResourceFactory reactorResourceFactory(ReactorNettyProperties configurationProperties) {
|
||||
ReactorResourceFactory reactorResourceFactory = new ReactorResourceFactory();
|
||||
if (configurationProperties.getShutdownQuietPeriod() != null) {
|
||||
reactorResourceFactory.setShutdownQuietPeriod(configurationProperties.getShutdownQuietPeriod());
|
||||
|
@ -21,16 +21,16 @@ import java.time.Duration;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
/**
|
||||
* Configuration properties for Reactor Netty configuration.
|
||||
* Configuration properties for Reactor Netty.
|
||||
*
|
||||
* @author Moritz Halbritter
|
||||
* @since 2.7.9
|
||||
*/
|
||||
@ConfigurationProperties(prefix = "spring.reactor.netty")
|
||||
public class ReactorNettyConfigurationProperties {
|
||||
public class ReactorNettyProperties {
|
||||
|
||||
/**
|
||||
* Configure the amount of time to wait before shutting down resources.
|
||||
* Amount of time to wait before shutting down resources.
|
||||
*/
|
||||
private Duration shutdownQuietPeriod;
|
||||
|
@ -9,8 +9,8 @@ spring.groovy.template.cache=false
|
||||
spring.h2.console.enabled=true
|
||||
spring.mustache.servlet.cache=false
|
||||
spring.mvc.log-resolved-exception=true
|
||||
spring.reactor.netty.shutdown-quiet-period=0s
|
||||
spring.template.provider.cache=false
|
||||
spring.thymeleaf.cache=false
|
||||
spring.web.resources.cache.period=0
|
||||
spring.web.resources.chain.cache=false
|
||||
spring.reactor.netty.shutdown-quiet-period=0s
|
||||
|
Loading…
Reference in New Issue
Block a user