Add @SpringBootApplication annotation
Add a new @SpringBootApplication which is equivalent to @Configuration, @EnableAutoConfiguration and @ComponentScan. See gh-1842
This commit is contained in:
@@ -94,8 +94,9 @@ public class SpringBootCompilerAutoConfiguration extends CompilerAutoConfigurati
|
||||
|
||||
private boolean hasEnableAutoConfigureAnnotation(ClassNode classNode) {
|
||||
for (AnnotationNode node : classNode.getAnnotations()) {
|
||||
if ("EnableAutoConfiguration".equals(node.getClassNode()
|
||||
.getNameWithoutPackage())) {
|
||||
String name = node.getClassNode().getNameWithoutPackage();
|
||||
if ("EnableAutoConfiguration".equals(name)
|
||||
|| "SpringBootApplication".equals(name)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user