From 1f0d5f1130a449623cc985c3fe0b9db9f9b697e8 Mon Sep 17 00:00:00 2001 From: Kalpesh Date: Fri, 29 Jul 2022 00:28:28 +0530 Subject: [PATCH 1/2] Allow config prop annotation processor to find reactive cookie props See gh-31912 --- .../springframework/boot/autoconfigure/web/ServerProperties.java | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java index 367934c40ede..c44f83792a86 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java @@ -323,6 +323,7 @@ public static class Session { @DurationUnit(ChronoUnit.SECONDS) private Duration timeout = Duration.ofMinutes(30); + @NestedConfigurationProperty private final Cookie cookie = new Cookie(); public Duration getTimeout() { From d39e146a7d7d9b050446031766e1f503c6db11ad Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 29 Jul 2022 07:02:44 +0100 Subject: [PATCH 2/2] Polish "Allow config prop annotation processor to find reactive cookie props" See gh-31912 --- .../boot/autoconfigure/web/ServerProperties.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java index c44f83792a86..22bff78d6951 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.