Remove use of @Component from classes that are not scanned

Closes gh-7549
This commit is contained in:
Andy Wilkinson
2016-12-02 17:57:21 +00:00
parent b60150b05e
commit 1464425d64
7 changed files with 24 additions and 14 deletions

View File

@@ -30,7 +30,6 @@ import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
/**
* A registry for all {@link MvcEndpoint} beans, and a factory for a set of generic ones
@@ -39,7 +38,6 @@ import org.springframework.stereotype.Component;
*
* @author Dave Syer
*/
@Component
public class MvcEndpoints implements ApplicationContextAware, InitializingBean {
private ApplicationContext applicationContext;