From cac6ad21c141fcf4d133cf53f4198830fb4b77a4 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 16 Mar 2015 23:04:24 -0700 Subject: [PATCH] Fix WebIntegrationTest JavaDoc The example `@Value("server.local.port")` should read `@Value("${local.server.port}")`. Fixes gh-2628 --- .../org/springframework/boot/test/WebIntegrationTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot/src/main/java/org/springframework/boot/test/WebIntegrationTest.java b/spring-boot/src/main/java/org/springframework/boot/test/WebIntegrationTest.java index fe5e7b8d0c..b1b8ecfcfd 100644 --- a/spring-boot/src/main/java/org/springframework/boot/test/WebIntegrationTest.java +++ b/spring-boot/src/main/java/org/springframework/boot/test/WebIntegrationTest.java @@ -55,8 +55,8 @@ public @interface WebIntegrationTest { /** * Convenience attribute that can be used to set a {@code server.port=0} * {@link Environment} property which usually triggers listening on a random port. - * Often used in conjunction with a {@code @Value("server.local.port")} injected field - * on the test. + * Often used in conjunction with a @Value("${local.server.port}") + * injected field on the test. */ boolean randomPort() default false;