Skip to content

Commit a2fe8a0

Browse files
author
Dave Syer
committed
Actuator README accuracy
1 parent f645b03 commit a2fe8a0

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

spring-boot-actuator/README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,14 @@ endpoint. An endpoint can be implemented as a Spring MVC
105105

106106
}
107107

108-
You can launch that straight away using the Spring Boot CLI
109-
(without the `@EnableAutoConfiguration` and even without the import
110-
statements that your IDE will add if you are using one), or you can
111-
use the main method to launch it from your project jar. Just add a
112-
`start-class` in the properties section of the `pom` above pointing to
113-
the fully qualified name of your `SampleController`, e.g.
114-
115-
<properties>
116-
<start-class>com.mycompany.sample.SampleController</start-class>
117-
</properties>
108+
You can use the main method to launch it from your project jar. You
109+
can also launch that straight using the Spring Boot CLI (without
110+
the `@EnableAutoConfiguration` and even without the import statements
111+
that your IDE will add if you are using one), if you just add
112+
113+
```
114+
@Grab("org.springframework.boot:spring-boot-starter-actuator:{{project.version}}")
115+
```
118116

119117
and package and run:
120118

0 commit comments

Comments
 (0)