title: Spring - Excluding a bean from a package from being scanned
body: <p>If I have about 50 spring beans in package com.xyz.abc and I want to exclude 2 of those beans from being treated as a bean , is there a way to do it? I am using Spring Boot.</p>
  
  <pre><code>@ComponentScan({'com.xyz.abc'})
  </code></pre>
  
  <p>There is a class Automobile.class which I don't want to be treated as Spring Bean. However I have Car.class which extends Automobile to be treated as spring bean. </p>