Recognize @RestController as MVC Application
Update CLI SpringMvcCompilerAutoConfiguration to recognize Spring's new @RestController annotation.
This commit is contained in:
parent
13f51b7901
commit
347f30d135
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue