用弹簧壳打印固定线 [英] Print Fixed Lines with Spring Shell

查看:87
本文介绍了用弹簧壳打印固定线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个小型的Sprint Shell项目,在其中显示静态信息,这些静态信息在接收到事件时可能会更新. Spring Shell可以实现此功能吗?或者它甚至是完成这项工作的正确工具?

I want to develop a small Sprint Shell project where I display static information which potentially updates when an event is received. Is this functionality possible with Spring Shell, or is it even the correct tool for the job?

举一个我想要实现的例子:

To give an example of what I want to achieve:

-------------------
| Stock Value: 5$ | < This information should be always displayed
-------------------

shell:> I can put input here

当我在应用程序中键入事件时,应该可以将其更改为例如

While I type an event in the application should be able to change it to e.g.

-------------------
| Stock Value: 7$ | < This information gets updated
-------------------

shell:> I can still type here

推荐答案

Spring shell可以为您做到这一点.

Spring shell can do that for you.

在此处查看教程: https://github.com/spring-projects/spring-shell/blob/master/spring-shell-docs/src/main/asciidoc/using-spring-shell.adoc

这篇关于用弹簧壳打印固定线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆