0

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

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

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

shell:> I can put input here

当我在应用程序中键入一个事件时,应该能够将其更改为例如

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

shell:> I can still type here
4

1 回答 1

-1

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

请参阅此处的教程:https ://github.com/spring-projects/spring-shell/blob/master/spring-shell-docs/src/main/asciidoc/using-spring-shell.adoc

于 2019-07-11T12:50:26.057 回答