update context to scan system commands

This commit is contained in:
Jarred Li
2012-04-09 12:33:18 +08:00
parent ce64cfad34
commit c5e646d25f
2 changed files with 3 additions and 4 deletions

View File

@@ -4,9 +4,7 @@ import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan({"org.springframework.shell.commands",
"org.springframework.shell.converters",
"org.springframework.shell.samples.helloworld.commands"})
@ComponentScan({"org.springframework.shell.samples.helloworld.commands"})
public class HelloWorldPlugin {

View File

@@ -157,7 +157,8 @@ public class Bootstrap {
}
}
}
//annctx.scan("org.springframework.shell");
annctx.scan("org.springframework.shell.commands");
annctx.scan("org.springframework.shell.converters");
annctx.refresh();
ctx = annctx;
}