From 0834dc5b01a9a2c29599cd550587e6780e3518c5 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 8 Jun 2022 12:08:40 +0100 Subject: [PATCH] Polish "Update smoke tests to avoid conflicts with NAME environment variable" See gh-31267 --- .../java/smoketest/jetty10/service/HelloWorldService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-jetty10/src/main/java/smoketest/jetty10/service/HelloWorldService.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-jetty10/src/main/java/smoketest/jetty10/service/HelloWorldService.java index 732de935ba..ffd94c184c 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-jetty10/src/main/java/smoketest/jetty10/service/HelloWorldService.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-jetty10/src/main/java/smoketest/jetty10/service/HelloWorldService.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,7 +22,7 @@ import org.springframework.stereotype.Component; @Component public class HelloWorldService { - @Value("${name:World}") + @Value("${test.name:World}") private String name; public String getHelloMessage() {