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

}
Spring Shell 2.0 M1 发布,完全重写后的首个版本
Spring Shell 2.0 M1 是 Spring Shell 2.x 的首个里程碑版,开发者花了两年时间进行完全重写,将利用更新的组件(如 JLine 3 ),应用更好的模块化功能。版本亮点:A long requested feature, positional parameters are now supported (can even mix and match, to some extent)Use of the standard Spring conv

发布于 2017-09-19 07:47:05 | 126 次阅读


Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务