# RestfulPlugin **Repository Path**: xjpVips/restful-plugin ## Basic Information - **Project Name**: RestfulPlugin - **Description**: restful插件 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-06-26 - **Last Updated**: 2024-10-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: IDEA插件 ## README # RestfulPlugin #### 介绍 > 一套 Restful 服务开发辅助工具集。 >> 1. 点击 URL 直接跳转到对应的方法定义; >> 2. 支持 [YMP](https://gitee.com/suninformation/ymate-platform-v2)框架; >> 3. 支持 Spring框架; >> 3. 支持 `Navigate -> 搜索api接口` 搜索 Mapping `Ctrl + \`; >> 4. 支持多模块项目,以及模块嵌套模块; >> 5. 支持package-info取值 >> 6. 支持发送http请求,可以设置请求头并且缓存请求头和请求参数; >> 7. 支持控制台右键 跳转到控制器,文本选择格式为 GET:/demo/demo #### 使用 支持控制台右键 跳转到控制器,文本选择格式为 GET:/demo/demo ![输入图片说明](https://images.gitee.com/uploads/images/2021/0304/093705_aea98844_572776.png "iShot2021-03-04 09.35.46.png") #### 介绍http请求 新建restful.properties文件具体参数如下 restful.properties放在resources目录下 多模块项目每个模块多需要放一个 ``` #端口号 默认8080 restful.port=8080 #是否显示注释内容默认false restful.show_title=false #通用请求头设置 restful.request_headers=key=value,ke1=value1 #是否文件存储 默认false restful.cache_file=false ``` 1.show_title 方法上有注释的时候 设为true 会显示注释内容 **设为true会影响检索速度** ![输入图片说明](https://images.gitee.com/uploads/images/2021/0302/111606_fa3114c3_368994.png "iShot2021-03-02 11.15.51.png") 2.request_headers 全局请求头 ![输入图片说明](https://images.gitee.com/uploads/images/2021/0302/111646_81258064_368994.png "iShot2021-03-02 11.16.38.png") 3.cache_file 是否使用文件存储 缓存默认是类缓存 刷新接口缓存就消失了。可以选择缓存在文件中。会自动生成缓存的json文件 删除之后会重新生成 ![输入图片说明](https://images.gitee.com/uploads/images/2021/0302/111759_720481d5_368994.png "iShot2021-03-02 11.17.50.png")