Commit a2fe8a0e authored by Dave Syer's avatar Dave Syer

Actuator README accuracy

parent f645b039
...@@ -105,16 +105,14 @@ endpoint. An endpoint can be implemented as a Spring MVC ...@@ -105,16 +105,14 @@ endpoint. An endpoint can be implemented as a Spring MVC
} }
You can launch that straight away using the Spring Boot CLI You can use the main method to launch it from your project jar. You
(without the `@EnableAutoConfiguration` and even without the import can also launch that straight using the Spring Boot CLI (without
statements that your IDE will add if you are using one), or you can the `@EnableAutoConfiguration` and even without the import statements
use the main method to launch it from your project jar. Just add a that your IDE will add if you are using one), if you just add
`start-class` in the properties section of the `pom` above pointing to
the fully qualified name of your `SampleController`, e.g. ```
@Grab("org.springframework.boot:spring-boot-starter-actuator:{{project.version}}")
<properties> ```
<start-class>com.mycompany.sample.SampleController</start-class>
</properties>
and package and run: and package and run:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment