Files
2014-07-01 16:26:32 +08:00

14 lines
760 B
Markdown

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()方法