此版本仍在开发中,尚未被视为稳定版本。对于最新的稳定版本,请使用 Spring Shell 3.4.0spring-doc.cadn.net.cn

阅读文档

在本文档中,我们引用了使用 注释或编程示例。spring-doc.cadn.net.cn

有两种 annotation 模型:annotations 模型 称为 New Annotation Model,而 Legacy Annotations 模型称为 Old Legacy Annotation Model。

旧的遗留注释模型主要与@ShellMethod@ShellOption和 新的注释模型与@Command.spring-doc.cadn.net.cn

编程模型是实际注册内容的方式,即使您使用注释也是如此。spring-doc.cadn.net.cn

文档结构将进行修订,以阐明如何以不同的方式提供配置。