spring shell 将相当在自己的程序中内建一个shell ,
参考
https://projects.spring.io/spring-shell/#quick-start
<dependencies>
<dependency>
<groupId>org.springframework.shell</groupId>
<artifactId>spring-shell-starter</artifactId>
<version>2.0.1.BUILD-SNAPSHOT</version>
</dependency>
</dependencies><repositories>
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/libs-snapshot</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>参考
https://www.ibm.com/developerworks/cn/java/spring-shell-application/index.html?ca=drs-&utm_source=tuicool&utm_medium=referral
作者写的仔细
本文介绍了如何使用SpringShell在程序中内置一个shell环境。通过引入特定依赖项和配置仓库,开发者可以轻松地在其应用程序中集成shell功能。
718

被折叠的 条评论
为什么被折叠?



