- 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.
推薦閱讀
- PyTorch深度學習實戰:從新手小白到數據科學家
- Modern Programming: Object Oriented Programming and Best Practices
- PySpark大數據分析與應用
- 大數據算法
- Learn Unity ML-Agents:Fundamentals of Unity Machine Learning
- Hadoop大數據實戰權威指南(第2版)
- 圖數據實戰:用圖思維和圖技術解決復雜問題
- 視覺大數據智能分析算法實戰
- 菜鳥學SPSS數據分析
- 大數據時代系列(套裝9冊)
- SQL Server 2008寶典(第2版)
- 大數據測試技術:數據采集、分析與測試實踐(在線實驗+在線自測)
- AndEngine for Android Game Development Cookbook
- ECharts數據可視化:入門、實戰與進階
- 實用預測分析