title: Spring boot component scan include a single class
body: <p>I am using spring component scan to auto detect beans as:</p>
  
  <pre><code>@ComponentScan({"com.org.x, com.org.y"})
  </code></pre>
  
  <p>The issue is I want all classes in <code>com.org.x</code> to be scanned but I want a single class, <code>com.org.y.SomeService.class</code>, alone to be scanned from <code>com.org.y</code></p>
  
  <p>How can I achieve this ?</p>
  
  <p>Also apart from using context scan, how can I created this bean and inject in the application context ?</p>