I've tried to google "spring boot starter inurl:spring.io/guide" and the result is depressing. There are some good articles about writing a spring boot starter, but I still hope to get a offical guide so as to solve my confusion: If i just need annotations like @ConditionalOnClass, @Configuration, @Bean, and the project, the starter I write, will only be an denpendency in another spring boot project, is it still necessary to import spring boot using
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.4.RELEASE</version>
</parent>
?
Thanks a lot.
Comment From: wilkinsona
Have you seen the section about writing your own auto-configuration and starter in the reference documentation? It covers @Configuration
, @Bean
, @ConditionalOn…
, the use of spring.factories
etc.
If you’d like to see a guide on this subject, you can request one by opening an issue in the getting-started-guides
project.
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-projects-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.