title: Spring Boot - What Annotations Are Needed
body: <p>I am new to Spring Boot and I was just wondering if I need all annotations on my main method that I currently have
  Here they are </p>
  
  <pre><code>    @Import(ServiceConfiguration.class)
  @SpringBootApplication(scanBasePackages = {"com.myproject.rest",})
  @EnableJpaRepositories({"com.myproject.dao.jpa"})
  @EntityScan(basePackages = "com.myproject.domain.jpa")
  </code></pre>
  
  <p>The class ServiceConfiguration.class has the following annotations</p>
  
  <pre><code>    @Configuration
  @EnableConfigurationProperties({SlackServiceProperties.class})
  </code></pre>
  
  <p>My database objects have the @Entity annotation, my rest classes have the @RestController annotation and my service classes have the @Component annotation</p>
  
  <p>Just wondering are they all needed or can I exclude any of these annotations?</p>
  
  <p>Thanks</p>