Springbootcli-using-shell
提供:Dev Guides
Spring Boot CLI-シェルの使用
Spring Boot CLIは、以下に示すようにコマンドを直接実行できるコマンドを実行するためのシェルインターフェイスを提供します。 E:\ Test フォルダーに移動し、次のコマンドを入力します-
E:/Test> spring shell
上記のコマンドは、次の出力を生成します-
?[1mSpring Boot?[m?[2m (v1.5.8.RELEASE)?[m
Hit TAB to complete. Type 'help' and hit RETURN for help, and 'exit' to quit.
シェルでコマンドを実行する
このセクションでは、シェルでコマンドを実行する方法を学びます。 次を入力し、出力を参照してください-
version
Spring CLI v1.5.8.RELEASE
Tabキーを押してコマンドを自動完了し、exitと入力してシェルコンソールを終了できます。
シェルでのアプリケーションのテスト
シェルでアプリケーションをテストする方法を学びましょう。 次のコード行を入力して、出力を確認します-
E:\Test\FirstApplication>spring shell
?[1mSpring Boot?[m?[2m (v1.5.8.RELEASE)?[m
Hit TAB to complete. Type 'help' and hit RETURN for help, and 'exit' to quit.
$ test FirstApplication.groovy TestFirstApplication.groovy
.
Time: 0.347
OK (1 test)
$ exit
E:\Test\FirstApplication>