Permalink
Browse files

Modify SPR-9795 into subpackages

  • Loading branch information...
1 parent a1519b6 commit 5d8695df7b3506f3be00fa25b0bdd12a40ea6164 @philwebb philwebb committed Jan 23, 2013
@@ -1,14 +1,15 @@
+
package org.springframework.issues;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;
@Configuration
-@ComponentScan(useDefaultFilters = true, excludeFilters = { @Filter(Controller.class),
- @Filter(type = FilterType.ASSIGNABLE_TYPE, value = DispatcherConfig.class) })
+@ComponentScan(
+ basePackages = "org.springframework.issues.sub",
+ useDefaultFilters = true,
+ excludeFilters = { @Filter(Controller.class) })
public class ApplicationConfig {
-
}
@@ -1,3 +1,4 @@
+
package org.springframework.issues;
import org.springframework.context.annotation.ComponentScan;
@@ -6,7 +7,9 @@
import org.springframework.stereotype.Controller;
@Configuration
-@ComponentScan(useDefaultFilters=false, includeFilters={@Filter(Controller.class)})
+@ComponentScan(
+ basePackages = "org.springframework.issues.sub",
+ useDefaultFilters = false,
+ includeFilters = { @Filter(Controller.class) })
public class DispatcherConfig {
-
}
@@ -1,4 +1,4 @@
-package org.springframework.issues;
+package org.springframework.issues.sub;
import org.springframework.stereotype.Component;
@@ -1,4 +1,4 @@
-package org.springframework.issues;
+package org.springframework.issues.sub;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

0 comments on commit 5d8695d

Please sign in to comment.