1.idea中安装YapiUpload插件
2.修改项目推送地址
misc.xml
<!--yapi配置-->
<component name="yapi">
<option name="projectToken">5e34b122b86dd3b7dab2d58dc957e8ea09803f5ad1a18810fd124f1d7434b8cd</option>
<option name="projectId">857</option>
<option name="yapiUrl">http://172.16.101.80:3001/</option>
<option name="projectType">api</option>
</component>
3.在类中右击,选择UploadToYapi接口