From 6728a082198d73a0f77aa95893969f1d7fb217c4 Mon Sep 17 00:00:00 2001 From: kdomo Date: Wed, 5 Apr 2023 23:43:01 +0900 Subject: [PATCH 1/2] Use banner location constant See gh-34868 --- .../springframework/boot/SpringApplicationBannerPrinter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplicationBannerPrinter.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplicationBannerPrinter.java index fc8bba92ea21..d68ba15a6204 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplicationBannerPrinter.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplicationBannerPrinter.java @@ -128,7 +128,7 @@ static class SpringApplicationBannerPrinterRuntimeHints implements RuntimeHintsR @Override public void registerHints(RuntimeHints hints, ClassLoader classLoader) { - hints.resources().registerPattern("banner.txt"); + hints.resources().registerPattern(DEFAULT_BANNER_LOCATION); } } From 7ee55817b3aa05a1796f5e62a63bd1e70ade28ec Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 11 Apr 2023 15:39:20 +0200 Subject: [PATCH 2/2] Update copyright header of changed file See gh-34868 --- .../springframework/boot/SpringApplicationBannerPrinter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplicationBannerPrinter.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplicationBannerPrinter.java index d68ba15a6204..4e744703e744 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplicationBannerPrinter.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/SpringApplicationBannerPrinter.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2022 the original author or authors. + * Copyright 2012-2023 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.