From 1d4f86452ff451bd0ee6f873287ca6434e842ed6 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Tue, 27 Aug 2013 12:21:12 -0700 Subject: [PATCH] Use web-starter for CLI MVC compiler auto-config --- .../SpringMvcCompilerAutoConfiguration.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringMvcCompilerAutoConfiguration.java b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringMvcCompilerAutoConfiguration.java index fe08ac6d8f..2a1b07acdd 100644 --- a/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringMvcCompilerAutoConfiguration.java +++ b/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/autoconfigure/SpringMvcCompilerAutoConfiguration.java @@ -40,15 +40,8 @@ public class SpringMvcCompilerAutoConfiguration extends CompilerAutoConfiguratio public void applyDependencies(DependencyCustomizer dependencies) { dependencies .ifAnyMissingClasses("org.springframework.web.servlet.mvc.Controller") - .add("org.springframework", "spring-webmvc", - dependencies.getProperty("spring.version")); - - dependencies - .ifAnyMissingClasses("org.apache.catalina.startup.Tomcat") - .add("org.apache.tomcat.embed", "tomcat-embed-core", - dependencies.getProperty("tomcat.version")) - .add("org.apache.tomcat.embed", "tomcat-embed-logging-juli", - dependencies.getProperty("tomcat.version")); + .add("org.springframework.boot", "spring-boot-starter-web", + dependencies.getProperty("spring.boot.version")); dependencies.add("org.codehaus.groovy", "groovy-templates", dependencies.getProperty("groovy.version"));