Skip to content

Commit 8ecb659

Browse files
committed
Deprecate SecurityPrerequisite
Deprecate `SecurityPrerequisite` interface since we don't support it in Spring Boot 2. Closes gh-14846
1 parent cd1c263 commit 8ecb659

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/web/server/ManagementServerProperties.java

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

1919
import java.net.InetAddress;
2020

21-
import org.springframework.boot.autoconfigure.security.SecurityPrerequisite;
2221
import org.springframework.boot.autoconfigure.web.ServerProperties;
2322
import org.springframework.boot.context.properties.ConfigurationProperties;
2423
import org.springframework.boot.context.properties.NestedConfigurationProperty;
@@ -36,7 +35,7 @@
3635
* @see ServerProperties
3736
*/
3837
@ConfigurationProperties(prefix = "management.server", ignoreUnknownFields = true)
39-
public class ManagementServerProperties implements SecurityPrerequisite {
38+
public class ManagementServerProperties {
4039

4140
/**
4241
* Management endpoint HTTP port (uses the same port as the application by default).

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/SecurityPrerequisite.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -21,7 +21,9 @@
2121
* configuration is evaluated.
2222
*
2323
* @author Dave Syer
24+
* @deprecated since 2.0.6 since security prerequisites are not supported in Spring Boot 2
2425
*/
26+
@Deprecated
2527
public interface SecurityPrerequisite {
2628

2729
}

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/security/SecurityProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @author Madhura Bhave
3838
*/
3939
@ConfigurationProperties(prefix = "spring.security")
40-
public class SecurityProperties implements SecurityPrerequisite {
40+
public class SecurityProperties {
4141

4242
/**
4343
* Order applied to the WebSecurityConfigurerAdapter that is used to configure basic

0 commit comments

Comments
 (0)