官术网_书友最值得收藏!

Using the command-line runners

With our basic application skeleton ready, let's add some meat to the bones by making our application do something.

Let's start by first creating a class named StartupRunner. This will implement the CommandLineRunner interface, which basically provides just one method: public void run(String... args) --that will get called by Spring Boot only once after the application has started.

主站蜘蛛池模板: 滕州市| 永清县| 宜兰县| 聂拉木县| 湟中县| 康定县| 长子县| 桃源县| 永嘉县| 伊宁县| 拉萨市| 柳江县| 佛教| 青川县| 旌德县| 龙里县| 延安市| 木兰县| 兰溪市| 巫溪县| 修文县| 雅江县| 渝中区| 榆中县| 探索| 崇礼县| 通山县| 康乐县| 广元市| 沁水县| 静安区| 门源| 甘孜| 新源县| 永川市| 云安县| 肇州县| 中方县| 隆德县| 铜川市| 松滋市|