title: Web server failed to start. Port 8080 was already in use. Spring Boot microservice
body: <p>I am trying to call webAPI from gradle project.</p>
  <p>My build.gradle is as following.</p>
  <pre><code>plugins {
      id 'org.springframework.boot' version '2.1.4.RELEASE'
      id 'java'
  }
  
  apply plugin: 'io.spring.dependency-management'
  
  dependencies {
      implementation 'org.springframework.boot:spring-boot-starter'
      runtimeOnly 'org.springframework.boot:spring-boot-devtools'
      testImplementation 'org.springframework.boot:spring-boot-starter-test'
      compile 'org.springframework.boot:spring-boot-starter-webflux'
      compile 'org.projectreactor:reactor-spring:1.0.1.RELEASE'
  }
  </code></pre>
  <p>If I remove following dependency</p>
  <pre><code>compile 'org.springframework.boot:spring-boot-starter-webflux'
  </code></pre>
  <p>It works, but if I add it back. it gives error as</p>
  <pre><code>Web server failed to start. Port 8080 was already in use.
  </code></pre>
  <p>So, how do I fix this, so that I can use webclient? Because application is not web application which requires port to run. it is a sort of microservice.</p>
  <p>I just want to use WebClient of Spring Boot. How do i use it without converting my application into web application.</p>