Can I use Spring Boot Starters for dependency management only?
1 answer
Yes, you can use starters.
Because I just want the pom, not autoconfiguration from Boot
Then don't use @EnableAutoConfiguration
, see JavaDoc and Reference .
Because I just want priests, not an embedded servlet container Then don't use a starter spring-boot-starter-web
, see the Starter POMs list .
If you want Spring MVC you need to declare a dependency or use spring-boot-starter-web
but without Tomcat see for example spring boot war without embedded tomcat
+1
source to share