anchor.diff:  
   NOTE: `@SpringBootApplication` also provides aliases to customize the attributes of
   `@EnableAutoConfiguration` and `@ComponentScan`.
  +
  +
  +[NOTE]
  +====
  +None of these features are mandatory and you may chose to replace this single annotation
  +by any of the features that it enables. For instance, you may not want to use component
  +scan in your application:
  +
  +[source,java,indent=0]
  +----
  +	package com.example.myproject;
  +
  +	import org.springframework.boot.SpringApplication;
  +	import org.springframework.context.annotation.ComponentScan
  +	import org.springframework.context.annotation.Configuration;
  +	import org.springframework.context.annotation.Import;
  +
  +	@Configuration
  +	@EnableAutoConfiguration
  +	@Import({ MyConfig.class, MyAnotherConfig.class })
  +	public class Application {
  +
  +		public static void main(String[] args) {
  +				SpringApplication.run(Application.class, args);
  +		}
  +
  +	}
  +----
  +
  +In this example, `Application` is just like any other Spring Boot application except that
  +`@Component`-annotated classes are not detected automatically and the user-defined beans
  +are imported explicitly (see `@Import`).
  +====
   
   
   
  
positive.code: You need to opt-in to auto-configuration by adding the `@EnableAutoConfiguration` or
  `@SpringBootApplication` annotations to one of your `@Configuration` classes.
  
  TIP: You should only ever add one `@EnableAutoConfiguration` annotation. We generally
  recommend that you add it to your primary `@Configuration` class.
  
  
  
  
negative.code: [[using-boot-locating-the-main-class]]
  === Locating the main application class
  We generally recommend that you locate your main application class in a root package
  above other classes. The <<using-boot-using-springbootapplication-annotation,
  `@SpringBootApplication` annotation>> is often placed on your main class, and it
  implicitly defines a base "`search package`" for certain items. For example, if you are
  writing a JPA application, the package of the `@SpringBootApplication` annotated class
  will be used to search for `@Entity` items. Using a root package also allows component
  scan to apply only on your project.
  
  TIP: If you don't want to use `@SpringBootApplication`, the `@EnableAutoConfiguration`
  and `@ComponentScan` annotations that it imports defines that behaviour so you can also
  use that instead.
  
  Here is a typical layout:
  
  