title: how could access actuator endpoints in non-web application
body: <p>This is not a web project, but I still add <code>spring-boot-starter-actuator</code> in pom, and specify <code>management.port=8081</code>, then in last of run method of <code>CommandLineRunner</code> , have below code,</p>
  
  <pre><code>System.in.read();
  </code></pre>
  
  <p>when started this project, it will hold on. Then I will to access <code>http://localhost:8081/configprops</code>, but show below message:</p>
  
  <pre><code>This webpage is not available
  </code></pre>
  
  <p>So how could access actuator endpoints in non-web application?
  BTW why I want to do so, because when started my project it can't load yml data successfully and caused NPE. So I want to access <code>/configprops</code> to check it.</p>
  
  <p>My yml like this:</p>
  
  <pre><code>spring:
      profiles.active: default
  
  ---
  
  spring:
      profiles: default
  
  user: 
     foo: 
        aaa: aaa@foo.com
  ---
  
  spring:
     profiles: test        
  
  user: 
     foo: 
         aaa: aaa@foo.com
         bbb: bbb@foo.com
  
  @ConfigurationProperties(prefix="user", locations="user.yml")
  public class UserConfig {
      private HashMap&lt;String, String&gt; foo;    
  }
  </code></pre>