ソースを参照

More syntax highlighting

Craig Walls 13 年 前
コミット
4506f08906
共有1 個のファイルを変更した6 個の追加2 個の削除を含む
  1. 6
    2
      gs-rest-service.md

+ 6
- 2
gs-rest-service.md ファイルの表示

166
 
166
 
167
 To run the sample, issue the following Gradle command:
167
 To run the sample, issue the following Gradle command:
168
 
168
 
169
-	$ gradle jettyRun
169
+```sh
170
+$ gradle jettyRun
171
+```
170
 	
172
 	
171
 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.
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
 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:
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
 Next Steps
182
 Next Steps