Commit 1c6cbad3 authored by Dave Syer's avatar Dave Syer

Add some useful imports to Mvc scripts

parent a817e7b9
...@@ -60,7 +60,8 @@ public class SpringMvcCompilerAutoConfiguration extends CompilerAutoConfiguratio ...@@ -60,7 +60,8 @@ public class SpringMvcCompilerAutoConfiguration extends CompilerAutoConfiguratio
public void applyImports(ImportCustomizer imports) { public void applyImports(ImportCustomizer imports) {
imports.addStarImports("org.springframework.web.bind.annotation", imports.addStarImports("org.springframework.web.bind.annotation",
"org.springframework.web.servlet.config.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", imports.addStaticImport("org.springframework.cli.template.GroovyTemplate",
"template"); "template");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment