title: Spring boot actuator not showing when I use @ComponentScan
body: <p>My application looks like below. In this configuration my application works (it is bootstrapped with the @ComponentScan).</p>
  <p>Unfortunately then /actuator/health does not work. When I remove @ComponentScan then actuator works but my application does not work.</p>
  <p>What do I need to configure to make both @ComponentScan and actuator work?</p>
  <pre><code>@EnableAutoConfiguration
  @SpringBootApplication
  @ComponentScan(basePackageClasses = {DistributionApp.class})
  public class Main extends SpringBootServletInitializer {
  ...
  }
  </code></pre>