简体   繁体   中英

How to Get JSON Data From Postman to Rest Controller

I have some questions on rest, pls help.

Q 1.)

I am working on Spring MVC and already configured dispatcher servlet to take incoming request, but now I am using some restfull web services also in that project, so is there any thing to change in web.xml file?

Q. 2) How to hit rest controller from Postman tool by passing JSON data inside body, using put request?.

Thanks, Shashank

Please do same as shown in bellow Images it definitely works don't forget to like Step 1 在此处输入图片说明 Just select the PUT method in drop-down and Pass the Token do same as there in Image

Step 2

选择“正文”和“原始”单选按钮,然后在下拉菜单中选择“ JsonApplication”,如镜像所示

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM