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

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.

主站蜘蛛池模板: 饶平县| 旬阳县| 和林格尔县| 城步| 武邑县| 甘泉县| 清新县| 天津市| 堆龙德庆县| 临澧县| 澜沧| 汉源县| 无极县| 巴中市| 弥勒县| 黄浦区| 嘉义市| 新乡县| 清水县| 区。| 长治县| 玉山县| 都安| 藁城市| 乌拉特后旗| 万州区| 家居| 鄂尔多斯市| 南开区| 容城县| 交口县| 溧水县| 沙雅县| 临武县| 桂平市| 阜南县| 宁城县| 梓潼县| 梅河口市| 阿荣旗| 雅安市|