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 -> 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) {