File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -105,16 +105,14 @@ endpoint. An endpoint can be implemented as a Spring MVC
105
105
106
106
}
107
107
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
+ ```
118
116
119
117
and package and run:
120
118
You can’t perform that action at this time.
0 commit comments