mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
fix build.gradle
This commit is contained in:
parent
383edc1656
commit
bf8ec19b03
2 changed files with 7 additions and 1 deletions
|
@ -25,6 +25,12 @@ repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bootJar {
|
||||||
|
archiveBaseName = 'app'
|
||||||
|
archiveVersion = ''
|
||||||
|
archiveClassifier = ''
|
||||||
|
}
|
||||||
|
|
||||||
ext.webjarsFontawesomeVersion = "4.7.0"
|
ext.webjarsFontawesomeVersion = "4.7.0"
|
||||||
ext.webjarsBootstrapVersion = "5.3.3"
|
ext.webjarsBootstrapVersion = "5.3.3"
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ class VetController {
|
||||||
// Here we are returning an object of type 'Vets' rather than a collection of Vet
|
// Here we are returning an object of type 'Vets' rather than a collection of Vet
|
||||||
// objects so it is simpler for Object-Xml mapping
|
// objects so it is simpler for Object-Xml mapping
|
||||||
Vets vets = new Vets();
|
Vets vets = new Vets();
|
||||||
Page<Vet> paginated = findPaginated(page);
|
Page<Vet> paginated = findPaginated(1);
|
||||||
vets.getVetList().addAll(paginated.toList());
|
vets.getVetList().addAll(paginated.toList());
|
||||||
return addPaginationModel(page, paginated, model);
|
return addPaginationModel(page, paginated, model);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue