This commit is contained in:
sxyx2008
2014-07-01 16:26:32 +08:00
parent 6a08435941
commit 4b306d453b
18 changed files with 280 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
spring-boot-example
=======================
使用```spring boot```和```spring hateoas```发布基于```REST```风格的接口
运行```Application```中的```main```方法。然后浏览器访问
* [http://localhost:8080/](http://localhost:8080/) http://localhost:8080/ SampleController中的home()
* [http://localhost:8080/greeting](http://localhost:8080/greeting) http://localhost:8080/greeting GreetingController中的greeting()方法
* [http://localhost:8080/print/zhangsan](http://localhost:8080/print/zhangsan) http://localhost:8080/print/{name} GreetingController中的print()方法
* [http://localhost:8080/hello/zhangsan/18](http://localhost:8080/hello/zhangsan/18) http://localhost:8080/hello/{name}/{age} SimpleSpringBoot中的hello()方法