title: How can I create a Spring 5 component index?
body: <p>Spring Framework 5 apparently contains support for a "component index" which lives in META-INF/spring.components and can be used to avoid the need for class-path scanning, and thus, I assume, improve a webapps' startup time.</p>
  
  <p>See:</p>
  
  <ul>
  <li><a href="https://github.com/spring-projects/spring-framework/wiki/What%27s-New-in-Spring-Framework-5.x#core-container" rel="noreferrer">The "what's new in spring 5" mention</a></li>
  <li><a href="https://jira.spring.io/browse/SPR-11890" rel="noreferrer">The jira issue under which the support was developed</a></li>
  <li><a href="https://github.com/snicoll/spring-framework/commit/dc160f6fd1f3623bf14b375c14a9b5065e660377#diff-db99676db08a87a6c93199c9c597e774" rel="noreferrer">Some examples of what the spring.components format seems to be from the change implementing it</a></li>
  </ul>
  
  <p>How can I create such a component index for an existing web app I plan to upgrade to Spring 5?</p>
  
  <p>(Ideally it would get generated automatically at build time with Maven I imagine, but any other workable approaches would at least give me a starting point to work from)</p>