最近開發中在下遇到了spring-shell開發工具的項目,現在整理了相關文章,以供大家學習
本博客相關的文章均是在Spring Shell 1.2.0的基礎上建立
Spring Shell介紹
Spring Shell提供了一個交互式Shell,它允許您使用一個簡單的基於Spring的編程模型來提供命令。
使用條件
Spring Shell需要JDK6.0及以上和Spring框架3.0(推薦3.1)及以上。
參考文檔
這部分的參考文檔解釋了Spring Shell的核心組件,是它的插件模型(plugin model)、內置命令(built-in commands)和轉換器( converters)。
應用程序
這部分提供了一些關於如何為Spring Shell創建命令。
可以從maven 庫中下載所需Jar 包
<!-- https://mvnrepository.com/artifact/org.springframework.shell/spring-shell --> <dependency> <groupId>org.springframework.shell</groupId> <artifactId>spring-shell</artifactId> <version>1.2.0.RELEASE</version> </dependency>