Add some useful imports to Mvc scripts

This commit is contained in:
Dave Syer 2013-07-22 15:43:28 +01:00
parent a817e7b969
commit 1c6cbad345
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ public class SpringMvcCompilerAutoConfiguration extends CompilerAutoConfiguratio
public void applyImports(ImportCustomizer imports) {
imports.addStarImports("org.springframework.web.bind.annotation",
"org.springframework.web.servlet.config.annotation",
"org.springframework.http");
"org.springframework.web.servlet",
"org.springframework.web.servlet.handler", "org.springframework.http");
imports.addStaticImport("org.springframework.cli.template.GroovyTemplate",
"template");
}