Spring Shell

联合创作 · 2023-09-28 19:29

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

}
浏览 4
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报