Recognize @RestController as MVC Application

Update CLI SpringMvcCompilerAutoConfiguration to recognize Spring's new
@RestController annotation.
This commit is contained in:
Phillip Webb 2013-08-29 11:49:40 -07:00
parent 13f51b7901
commit 347f30d135
1 changed files with 2 additions and 2 deletions

View File

@ -49,8 +49,8 @@ public class SpringMvcCompilerAutoConfiguration extends CompilerAutoConfiguratio
@Override
public boolean matches(ClassNode classNode) {
return AstUtils.hasAtLeastOneAnnotation(classNode, "Controller", "EnableWebMvc",
"WebConfiguration");
return AstUtils.hasAtLeastOneAnnotation(classNode, "Controller",
"RestController", "EnableWebMvc", "WebConfiguration");
}
@Override