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
作者写的仔细