Skip to content

Commit c9f55d7

Browse files
committed
Remove unnecessary @ConfigurationPropertiesSource
The Javadoc said: >> this annotation is only required for types located in a different module than the @ConfigurationProperties class that references them. Signed-off-by: Yanming Zhou <[email protected]>
1 parent eab6923 commit c9f55d7

File tree

6 files changed

+0
-15
lines changed

6 files changed

+0
-15
lines changed

module/spring-boot-micrometer-metrics/src/main/java/org/springframework/boot/micrometer/metrics/autoconfigure/export/properties/PushRegistryProperties.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
import java.time.Duration;
2020

21-
import org.springframework.boot.context.properties.ConfigurationPropertiesSource;
22-
2321
/**
2422
* Base class for properties that configure a metrics registry that pushes aggregated
2523
* metrics on a regular interval.
@@ -29,7 +27,6 @@
2927
* @author Stephane Nicoll
3028
* @since 4.0.0
3129
*/
32-
@ConfigurationPropertiesSource
3330
public abstract class PushRegistryProperties {
3431

3532
/**

module/spring-boot-web-server/src/main/java/org/springframework/boot/web/server/Compression.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
import org.jspecify.annotations.Nullable;
2020

21-
import org.springframework.boot.context.properties.ConfigurationPropertiesSource;
2221
import org.springframework.util.unit.DataSize;
2322

2423
/**
@@ -29,7 +28,6 @@
2928
* @author Stephane Nicoll
3029
* @since 2.0.0
3130
*/
32-
@ConfigurationPropertiesSource
3331
public class Compression {
3432

3533
/**

module/spring-boot-web-server/src/main/java/org/springframework/boot/web/server/Cookie.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
import org.jspecify.annotations.Nullable;
2323

24-
import org.springframework.boot.context.properties.ConfigurationPropertiesSource;
2524
import org.springframework.boot.convert.DurationUnit;
2625

2726
/**
@@ -33,7 +32,6 @@
3332
* @author Weix Sun
3433
* @since 2.6.0
3534
*/
36-
@ConfigurationPropertiesSource
3735
public class Cookie {
3836

3937
/**

module/spring-boot-web-server/src/main/java/org/springframework/boot/web/server/Http2.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,12 @@
1616

1717
package org.springframework.boot.web.server;
1818

19-
import org.springframework.boot.context.properties.ConfigurationPropertiesSource;
20-
2119
/**
2220
* Simple server-independent abstraction for HTTP/2 configuration.
2321
*
2422
* @author Brian Clozel
2523
* @since 2.0.0
2624
*/
27-
@ConfigurationPropertiesSource
2825
public class Http2 {
2926

3027
/**

module/spring-boot-web-server/src/main/java/org/springframework/boot/web/server/servlet/Jsp.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,13 @@
1919
import java.util.HashMap;
2020
import java.util.Map;
2121

22-
import org.springframework.boot.context.properties.ConfigurationPropertiesSource;
23-
2422
/**
2523
* Configuration for the server's JSP servlet.
2624
*
2725
* @author Andy Wilkinson
2826
* @author Stephane Nicoll
2927
* @since 4.0.0
3028
*/
31-
@ConfigurationPropertiesSource
3229
public class Jsp {
3330

3431
/**

module/spring-boot-web-server/src/main/java/org/springframework/boot/web/server/servlet/Session.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
import org.jspecify.annotations.Nullable;
2525

26-
import org.springframework.boot.context.properties.ConfigurationPropertiesSource;
2726
import org.springframework.boot.context.properties.NestedConfigurationProperty;
2827
import org.springframework.boot.convert.DurationUnit;
2928
import org.springframework.boot.web.server.Cookie;
@@ -34,7 +33,6 @@
3433
* @author Andy Wilkinson
3534
* @since 4.0.0
3635
*/
37-
@ConfigurationPropertiesSource
3836
public class Session {
3937

4038
/**

0 commit comments

Comments
 (0)