commit
This commit is contained in:
@@ -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()方法
|
||||
Reference in New Issue
Block a user