Bläddra i källkod

More syntax highlighting

Craig Walls 13 år sedan
förälder
incheckning
4506f08906
1 ändrade filer med 6 tillägg och 2 borttagningar
  1. 6
    2
      gs-rest-service.md

+ 6
- 2
gs-rest-service.md Visa fil

@@ -166,13 +166,17 @@ All of the pieces of our REST endpoint are in place. All that's left to do is to
166 166
 
167 167
 To run the sample, issue the following Gradle command:
168 168
 
169
-	$ gradle jettyRun
169
+```sh
170
+$ gradle jettyRun
171
+```
170 172
 	
171 173
 This will cause the application to be compiled and for a Jetty server to start on port 8080. You can then point your browser or other REST client (such as Spring's RestTemplate or the Spring REST Shell) at http://localhost:8080/HelloWorldRest/hello-world to see the result. Or you can try specifying a name parameter as in http://localhost:8080/HelloWorldRest/hello-world?name=Craig.
172 174
 
173 175
 If you simply want to build the code into a WAR file that you can deploy in your own server, issue the following Gradle command:
174 176
 
175
-	$ gradle build
177
+```sh
178
+$ gradle build
179
+```
176 180
 
177 181
 
178 182
 Next Steps