@PathParam和@QueryParam的区别

@PathParam和@QueryParam的区别:

1. @PathParam —— url中直接在斜杠后面添加参数值

例如:www.test.com/customer/001 

2. @QueryParam —— url中在后面添加【键值对】形式的参数

例如:www.test.com/customer?id=001 

猜你喜欢

转载自agilestyle.iteye.com/blog/2313495