Move @LocalServerPort annotation
Move the @LocalServerPort to org.springframework.boot.context.embedded since it's only really useful when working with embedded servlet containers. See gh-5822
This commit is contained in:
@@ -18,7 +18,7 @@ package sample.testng;
|
||||
|
||||
import org.testng.annotations.Test;
|
||||
|
||||
import org.springframework.boot.context.web.LocalServerPort;
|
||||
import org.springframework.boot.context.embedded.LocalServerPort;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.boot.test.context.SpringBootTest.WebEnvironment;
|
||||
import org.springframework.boot.test.web.client.TestRestTemplate;
|
||||
|
||||
Reference in New Issue
Block a user