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

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.

主站蜘蛛池模板: 龙山县| 张掖市| 车险| 石屏县| 新巴尔虎左旗| 班戈县| 榆社县| 巴彦县| 宿州市| 正阳县| 临武县| 武定县| 蓝田县| 蓬安县| 青神县| 清镇市| 兴宁市| 奎屯市| 绥德县| 监利县| 河间市| 汉中市| 横峰县| 永嘉县| 左云县| 宁蒗| 弥勒县| 赤壁市| 五莲县| 庆阳市| 永春县| 卓尼县| 靖西县| 冀州市| 栾川县| 天水市| 扬中市| 田东县| 洛浦县| 平遥县| 颍上县|