@FunctionalInterfaceSE public interface ApplicationRunner
SpringApplication
に含まれている場合、Bean を実行する必要があることを示すために使用されるインターフェース。同じアプリケーションコンテキスト内で複数の ApplicationRunner
Bean を定義し、Ordered
インターフェースまたは @Order
アノテーションを使用してオーダーできます。CommandLineRunner
修飾子と型 | メソッドと説明 |
---|---|
void | run(ApplicationArguments args) Bean の実行に使用されるコールバック。 |
void run(ApplicationArguments args) throws ExceptionSE
args
- 受信アプリケーション引数 ExceptionSE
- エラー時