From abe63b71e68f73972fe6a7da8016c754a2da47a8 Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Thu, 21 Nov 2024 13:55:19 -0500 Subject: [PATCH 1/2] Change the name of this method so it doesn't overlap the other one --- .../springframework/samples/petclinic/vet/VetController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/samples/petclinic/vet/VetController.java b/src/main/java/org/springframework/samples/petclinic/vet/VetController.java index 19fa86e..94ef0ab 100644 --- a/src/main/java/org/springframework/samples/petclinic/vet/VetController.java +++ b/src/main/java/org/springframework/samples/petclinic/vet/VetController.java @@ -92,7 +92,7 @@ private Page findPaginated(int page) { } @GetMapping("/vets/{lastName}") - public @ResponseBody Vets showResourcesVetList(@PathVariable(name = "lastName") String lastName) { + public @ResponseBody Vets showResourcesVetListByLastName(@PathVariable(name = "lastName") String lastName) { Vets vets = new Vets(); Collection vetList = this.vetRepository.findByLastName(lastName); for (Vet vet : vetList) { From 4edcc0dcf89c3fd7fea50e059c0926e2c724dbdd Mon Sep 17 00:00:00 2001 From: "Calvin A. Allen" Date: Thu, 21 Nov 2024 13:58:41 -0500 Subject: [PATCH 2/2] Don't use 'current' for path --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 3ea4d0d..a52e811 100644 --- a/build.gradle +++ b/build.gradle @@ -135,7 +135,7 @@ tasks.register('downloadNewRelicAgent', DefaultTask) { include("**/newrelic-v*.jar") }) - def fileUrl = "https://download.newrelic.com/newrelic/java-agent/newrelic-agent/current/newrelic-java-${newrelic_version}.zip" + def fileUrl = "https://download.newrelic.com/newrelic/java-agent/newrelic-agent/${newrelic_version}/newrelic-java-${newrelic_version}.zip" def destinationFile = file("$rootDir/newrelic/newrelic.zip") new URL(fileUrl).withInputStream { inputStream ->