Commit 347f30d1 authored by Phillip Webb's avatar Phillip Webb

Recognize @RestController as MVC Application

Update CLI SpringMvcCompilerAutoConfiguration to recognize Spring's new
@RestController annotation.
parent 13f51b79
...@@ -49,8 +49,8 @@ public class SpringMvcCompilerAutoConfiguration extends CompilerAutoConfiguratio ...@@ -49,8 +49,8 @@ public class SpringMvcCompilerAutoConfiguration extends CompilerAutoConfiguratio
@Override @Override
public boolean matches(ClassNode classNode) { public boolean matches(ClassNode classNode) {
return AstUtils.hasAtLeastOneAnnotation(classNode, "Controller", "EnableWebMvc", return AstUtils.hasAtLeastOneAnnotation(classNode, "Controller",
"WebConfiguration"); "RestController", "EnableWebMvc", "WebConfiguration");
} }
@Override @Override
......
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