集成的 HTTP Request 工具
已过时的 REST Client
![](https://img.haomeiwen.com/i1662509/abb9412a08d5b8bb.png)
新版的 HTTP Request
![](https://img.haomeiwen.com/i1662509/835188162fd7c6bf.png)
Following HTTP Request Live Templates are available:
- 'gtrp' and 'gtr' create a GET request with or without query parameters;
- 'ptr' and 'ptrp' create a POST request with a simple or parameter-like body;
- 'mptr' and 'fptr' create a POST request to submit a form with a text or file field (multipart/form-data);
### GET 请求
GET http://localhost:80/api/item
Accept: application/json
### POST 请求
集成的数据库管理工具
在窗口的右边有个 Database 按钮,点击。
如果没有,请点击上方的 View(视图)-Tool Windows(工具窗口)-Database。
点击绿色加号-Data Source,选择你需要的连接的数据库
参考
在 IDEA 中快速测试 API 接口_weixin_33795833的博客-CSDN博客
https://blog.csdn.net/weixin_33795833/article/details/91911123
IntelliJ IDEA——数据库集成工具(Database)的使用 - huiyi0521 - 博客园
https://www.cnblogs.com/huiyi0521/p/10125537.html
网友评论