spring-boot-example
使用spring boot和spring hateoas发布基于REST风格的接口
运行Application中的main方法。然后浏览器访问
-
http://localhost:8080/ http://localhost:8080/ SampleController中的home()
-
http://localhost:8080/greeting http://localhost:8080/greeting GreetingController中的greeting()方法
-
http://localhost:8080/print/zhangsan http://localhost:8080/print/{name} GreetingController中的print()方法
-
http://localhost:8080/hello/zhangsan/18 http://localhost:8080/hello/{name}/{age} SimpleSpringBoot中的hello()方法