Deprecate SecurityPrerequisite

Deprecate `SecurityPrerequisite` interface since we don't support it
in Spring Boot 2.

Closes gh-14846
This commit is contained in:
Phillip Webb
2018-10-15 21:00:06 -07:00
parent cd1c2638e5
commit 8ecb659a35
3 changed files with 5 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2017 the original author or authors.
* Copyright 2012-2018 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.
@@ -21,7 +21,9 @@ package org.springframework.boot.autoconfigure.security;
* configuration is evaluated.
*
* @author Dave Syer
* @deprecated since 2.0.6 since security prerequisites are not supported in Spring Boot 2
*/
@Deprecated
public interface SecurityPrerequisite {
}

View File

@@ -37,7 +37,7 @@ import org.springframework.util.StringUtils;
* @author Madhura Bhave
*/
@ConfigurationProperties(prefix = "spring.security")
public class SecurityProperties implements SecurityPrerequisite {
public class SecurityProperties {
/**
* Order applied to the WebSecurityConfigurerAdapter that is used to configure basic