Spring Shell 提供交互式的 Shell 可让你使用简单的基于 Spring 的编程模型来开发命令。
示例代码:
_@Component_ public class HelloWorldCommands implements CommandMarker { // use any Spring annotations for Dependency Injection or other Spring // interfaces as required. // methods with @Cli annotations go here }