spring shell和linux shell,windows shell近似,經由過程spring shell可以實現經由過程號令和法式進行交互
打開intellij idea建立項目,選擇spring boot類型項目進行建立
輸入maven項目標一些信息
選擇spring shell的maven依靠
<dependency> <groupId>org.springframework.shell</groupId> <artifactId>spring-shell-starter</artifactId> <version>2.0.0.RELEASE</version> </dependency>
設置項目保留路徑,點擊完當作,起頭建立項目
項目目次布局如下圖所示
編寫一個spring shell組件
運行法式,輸入shell號令,如下圖所示
0 篇文章
如果覺得我的文章對您有用,請隨意打賞。你的支持將鼓勵我繼續創作!