Adds deprecation warning to starters. Fixes #2148.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package org.springframework.cloud.starter.feign;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* Auto configuration to log warning about deprecation of starter
|
||||
* @author Ryan Baxter
|
||||
*/
|
||||
@Configuration
|
||||
@Deprecated
|
||||
public class FeignStarterDeprecationWarningAutoConfiguration {
|
||||
private static final Log LOGGER = LogFactory.getLog(FeignStarterDeprecationWarningAutoConfiguration.class);
|
||||
|
||||
@PostConstruct
|
||||
public void logWarning() {
|
||||
LOGGER.warn("spring-cloud-starter-feign is deprecated as of Spring Cloud Netflix 1.4.0, " +
|
||||
"please migrate to spring-cloud-starter-openfeign");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# Auto Configure
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
oorg.springframework.cloud.starter.feign.FeignStarterDeprecationWarningAutoConfiguration
|
||||
Reference in New Issue
Block a user