title: @LocalServerPort missing from Spring Boot 2.0.0.RELEASE
body: <p>I upgraded my app from spring boot 1.5.9.RELEASE to 2.0.0.RELEASE, and I can no longer import <code>org.springframework.boot.context.embedded.LocalServerPort</code>. I was using this to inject the port the server is running on during a test:</p>
  
  <pre><code>public class Task1Test {
  
      @LocalServerPort
      private int port;
  </code></pre>
  
  <p>The <a href="https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.5-Release-Notes" rel="noreferrer">Spring release notes</a> do not mention this removal and <a href="http://www.atetric.com/atetric/javadoc/org.springframework.boot/spring-boot/1.5.9.RELEASE/org/springframework/boot/context/embedded/LocalServerPort.html" rel="noreferrer">@LocalServerPort was not deprecated</a>. </p>
  
  <p>Is there an equivalent in Spring Boot 2.0 that I can use? </p>
  
  <p><strong>Edit</strong>: I'm pretty sure that the class is gone. I'm getting these compilation errors:</p>
  
  <pre><code>[ERROR] ... Task1Test.java:[12,49]package org.springframework.boot.context.embedded does not exist
  [ERROR] ... Task1Test.java:[46,6] cannot find symbol
    symbol:   class LocalServerPort
  </code></pre>