Skip to content

Commit efac1bf

Browse files
committed
Merge pull request #48934 from quaff
* gh-48934: Remove unnecessary @ConfigurationPropertiesSource Closes gh-48934
2 parents f1eef0e + 5733ee7 commit efac1bf

File tree

9 files changed

+0
-23
lines changed

9 files changed

+0
-23
lines changed

module/spring-boot-http-client/src/main/java/org/springframework/boot/http/client/autoconfigure/ApiversionProperties.java

Lines changed: 0 additions & 3 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.boot.context.properties.bind.Name;
2322

2423
/**
@@ -27,7 +26,6 @@
2726
* @author Phillip Webb
2827
* @since 4.0.0
2928
*/
30-
@ConfigurationPropertiesSource
3129
public class ApiversionProperties {
3230

3331
/**
@@ -53,7 +51,6 @@ public Insert getInsert() {
5351
return this.insert;
5452
}
5553

56-
@ConfigurationPropertiesSource
5754
public static class Insert {
5855

5956
/**

module/spring-boot-http-client/src/main/java/org/springframework/boot/http/client/autoconfigure/HttpClientProperties.java

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

2323
import org.jspecify.annotations.Nullable;
2424

25-
import org.springframework.boot.context.properties.ConfigurationPropertiesSource;
2625
import org.springframework.boot.context.properties.NestedConfigurationProperty;
2726

2827
/**
@@ -34,7 +33,6 @@
3433
* @author Phillip Webb
3534
* @since 4.0.0
3635
*/
37-
@ConfigurationPropertiesSource
3836
public class HttpClientProperties extends HttpClientSettingsProperties {
3937

4038
/**

module/spring-boot-http-client/src/main/java/org/springframework/boot/http/client/autoconfigure/HttpClientSettingsProperties.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import org.jspecify.annotations.Nullable;
2222

23-
import org.springframework.boot.context.properties.ConfigurationPropertiesSource;
2423
import org.springframework.boot.http.client.HttpClientSettings;
2524
import org.springframework.boot.http.client.HttpRedirects;
2625

@@ -31,7 +30,6 @@
3130
* @since 4.0.0
3231
* @see HttpClientSettings
3332
*/
34-
@ConfigurationPropertiesSource
3533
public abstract class HttpClientSettingsProperties {
3634

3735
/**
@@ -85,7 +83,6 @@ public Ssl getSsl() {
8583
/**
8684
* SSL configuration.
8785
*/
88-
@ConfigurationPropertiesSource
8986
public static class Ssl {
9087

9188
/**

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)