美文网首页Javaweb
Intellij 2018 新特性之rest client接口测

Intellij 2018 新特性之rest client接口测

作者: else05 | 来源:发表于2018-04-20 15:52 被阅读533次

intellij 2018 更新了一个新内容,可以方便生成spring boot 的rest接口测试

一、效果如下

  • SpringBootREST.gif

二、先在pom.xml文件中引入依赖 spring-boot-starter-actuator .

<dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-actuator</artifactId>
      <version>2.0.0.RELEASE</version>
</dependency>

三、修改启动配置 打开 enable JMX agent

  • image.png
  • image.png

四、启动spring-boot项目

  1. 项目一定要启动成功后才能看见这个绿色小三角
  • image.png
  1. 编辑请求文件, 更多语法看这里 >>> HTTP Client in IntelliJ IDEA Code Editor
    image.png

五:更多特性


注: 这个功能是替代原来的rest client

  • image.png
  • image.png

参考:

相关文章

网友评论

本文标题:Intellij 2018 新特性之rest client接口测

本文链接:https://www.haomeiwen.com/subject/cpzakftx.html