- Spring Boot 2.0 Cookbook(Second Edition)
- Alex Antonov
- 63字
- 2021-06-24 19:24:37
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.
推薦閱讀
- 數(shù)據(jù)產(chǎn)品經(jīng)理高效學(xué)習(xí)手冊(cè):產(chǎn)品設(shè)計(jì)、技術(shù)常識(shí)與機(jī)器學(xué)習(xí)
- 數(shù)據(jù)庫(kù)基礎(chǔ)與應(yīng)用:Access 2010
- Test-Driven Development with Mockito
- Learning Spring Boot
- Python數(shù)據(jù)分析、挖掘與可視化從入門到精通
- 大數(shù)據(jù)算法
- iOS and OS X Network Programming Cookbook
- Python數(shù)據(jù)分析:基于Plotly的動(dòng)態(tài)可視化繪圖
- 企業(yè)級(jí)數(shù)據(jù)與AI項(xiàng)目成功之道
- MATLAB Graphics and Data Visualization Cookbook
- INSTANT Apple iBooks How-to
- R語言數(shù)據(jù)挖掘
- 商業(yè)智能工具應(yīng)用與數(shù)據(jù)可視化
- MySQL數(shù)據(jù)庫(kù)實(shí)用教程
- Oracle 11g數(shù)據(jù)庫(kù)管理員指南