title: Custom endpoint in Spring Boot Actuator
body: <p>I am trying to write the custom endpoint for Spring Boot applications. I have written the custom Endpoint implementation as below. I have not included the extra things like import for reduce the size of code.</p>
  
  <pre><code>@Component
  public class TestendPoint implements Endpoint&lt;List&lt;String&gt;&gt;{
  
      public String getId() {
          return "test";      
      }
  
      public List&lt;String&gt; invoke() {
          List&lt;String&gt; test= new ArrayList&lt;String&gt;();
          test.add("Details 1");
          test.add("Details 2");
          return serverDetails;
      }
  
      public boolean isEnabled() {        
          return true;
      }
  
      public boolean isSensitive() {      
          return false;
      }
  
  }
  </code></pre>
  
  <p>Once I have written the above code, I have restarted the application and tring to access endpoint from /test. But, the endpoint is not available. The following is the Spring Boot start application.</p>
  
  <pre><code>@Configuration
  @EnableAutoConfiguration
  public class Application{
  
      public static void main(final String[] args) {
          SpringApplication.run(Application.class, args);
      }
  }
  </code></pre>
  
  <p>Apart from that, I have everything to run a Spring Boot Actuator. I could access the default endpoints like /info,/metrics, etc. </p>
  
  <p>Could you share your knowledge if I am missing anything here. I am assuming that the custom endpoint class will be loaded without ant further configurations from developer. </p>