update context to scan system commands
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user