正如spring 文档所述,crashd 将在 spring boot 2.0 中删除。
替代品会是什么?
您提到的上一个 shell 是 spring-boot 1 中的一个端口,它似乎不是很活跃。
在 Spring Boot 2.0 中,您可以使用可以在现有 spring-boot 应用程序中使用的spring-shell或可以作为独立部署的特定 spring-boot shell。
之后,采取哪种选择取决于您的需求。
在我这边,我刚刚创建了一个用于在 ActiveMQ 中发布消息的特定 shell,您可以获得 Spring-Boot 的全部功能,用于自动配置与外部系统(JMS、JDBC、LDAP、SMTP 等)的任何连接。
为此,我刚刚添加了以下 pom 依赖项:
<dependency>
<groupId>org.springframework.shell</groupId>
<artifactId>spring-shell-starter</artifactId>
<version>2.0.0.RELEASE</version>
</dependency>
在我的 Spring Boot 项目中。
请注意,我能够将它集成到 Spring Boot 1.5.15 和 2.1.2 RELEASES 中。
Spring 团队不提供替代品。
https://github.com/spring-projects/spring-boot/issues/7044
抱歉,暂时没有。根据我们拥有的统计数据,远程 shell 似乎没有被广泛使用。例如,比较 8 月份的 Maven Central 下载量,远程 shell 启动器的下载量是 Web 启动器的 2%。这意味着不太可能值得在替代品上投入大量精力。
有第三方替补,从机票上,