a completed starter contains by steps as follows:
- a auto configuration file ,in this project is SwaggerAutoConfiguration.
- add this auto-configuration file to
META-INF/spring.factories
. theorg.springframework.boot.autoconfigure.EnableAutoConfiguration
as the key, and the value isSwaggerAutoConfiguration
's fully qualified name.- create a
spring-configuration-metadata.json
file to help IDE provide user a friendly hint (of course ,this step can omit)