Skip to content

Commit f804b56

Browse files
kumar-devendermaibin
authored andcommitted
Move code to right package (eugenp#8285)
* Move code to rigth package * Move code to correct module
1 parent 8387e37 commit f804b56

25 files changed

+29
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package com.baeldung.componentscan.filter.annotation;
2+
3+
import java.lang.annotation.ElementType;
4+
import java.lang.annotation.Retention;
5+
import java.lang.annotation.RetentionPolicy;
6+
import java.lang.annotation.Target;
7+
8+
@Retention(RetentionPolicy.RUNTIME)
9+
@Target(ElementType.TYPE)
10+
public @interface Animal {
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.baeldung.componentscan.filter.annotation;
2+
3+
import org.springframework.context.annotation.ComponentScan;
4+
import org.springframework.context.annotation.Configuration;
5+
import org.springframework.context.annotation.FilterType;
6+
7+
@Configuration
8+
@ComponentScan(includeFilters = @ComponentScan.Filter(type = FilterType.ANNOTATION, classes = Animal.class))
9+
public class ComponentScanAnnotationFilterApp {
10+
11+
public static void main(String[] args) {
12+
}
13+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.baeldung.componentscan.filter.annotation;
2+
3+
@Animal
4+
public class Elephant {
5+
}

0 commit comments

Comments
 (0)