Well, I was seeing Spring IO Platform for versioned management of my dependencies, then I went into the sources, as far I see it uses Spring Boot POMs under the hoods. So after that I was wondering, can I use the starters, since it's just POMs to shortcut the dependency declaration ?
Asked
Active
Viewed 318 times
3
-
2the starters are just "known good sets". so why not? – cfrick Nov 04 '14 at 21:13
-
1What he said. The reason they exist is so you can use them to manage dependencies. What's the confusion about? – Dave Syer Nov 05 '14 at 07:37
-
Because I just want the poms, not the autoconfigure from Boot or embedded servlet container. If there is no problem my POMs will be glad to be more cleaner :D – Joao Evangelista Nov 06 '14 at 17:14
-
Why not user Spring IO Platform's POMs? – derkoe Feb 04 '15 at 14:14
-
Patform POMs are not like starters, they only have a set of compatibility versions, you still have to declare one dependency by one, currently I'm using both – Joao Evangelista Feb 04 '15 at 16:12
1 Answers
1
Yes, you can use the starters.
Because I just want the poms, not the autoconfigure from Boot
Then do not use @EnableAutoConfiguration
, see JavaDoc and Reference.
Because I just want the poms, not the embedded servlet container
Then do not use the spring-boot-starter-web
starter, see the list of Starter POMs.
If you need Spring MVC, then you have to declare the dependency or you use spring-boot-starter-web
but without Tomcat, see e.g. spring boot war without tomcat embedded