解决方法:idea安装RestfulToolkit插件。
file----->settings------->plugins------->RestfulToolkit
使用方式:
windows: Ctrl+Alt+N
MAC:option+command+N