历史

history 命令显示已执行的命令历史记录。

您可以使用一些配置选项来配置历史记录的行为。历史记录保存在日志文件中,该文件默认启用,可以通过设置 spring.shell.history.enabled 来关闭。日志文件的名称从 spring.application.name 解析,默认为 spring-shell.log,您可以通过设置 spring.shell.history.name 进行更改。

默认情况下,日志文件生成在当前工作目录中,您可以通过设置 spring.shell.config.location 来指定。此属性可以包含一个占位符 ({userconfig}),它解析为公共共享配置目录。

运行 Spring Shell 应用程序以查看示例应用程序如何使用这些选项。
© . This site is unofficial and not affiliated with VMware.