title: how to use the ApplicationArguments in spring-boot
body: <p>I am learning the Spring-Boot(I am new to it), reading the Spring Boot Document. In the <strong>23.6 Accessing application arguments</strong>, It talk about the <strong>ApplicationArguments</strong>, and the code is:</p>
  
  <pre><code>package com.example.project;
  
  import org.springframework.boot.*;
  import org.springframework.beans.factory.annotation.*;
  import org.springframework.stereotype.*;
  
  import java.util.*;
  
  @Component
  public class MyBean {
    @Autowired
    public MyBean(ApplicationArguments args) {
      boolean debug = args.containsOption("debug");
      List&lt;String&gt; files = args.getNonOptionArgs();
      System.out.println(debug);
      System.out.println(files);
    }
  }
  </code></pre>
  
  <p>It says if run with "--debug logfile.txt" debug=true, files=["logfile.txt"].</p>
  
  <p>But in my project, I don't know how to run it. I create the spring-boot using Maven: The Project Structure 
  <img src="https://i.stack.imgur.com/wRp0X.png" alt="the"></p>