mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-01-10 03:51:11 +00:00
fixed bug: vets.html did not display properly
This commit is contained in:
parent
91ed548481
commit
c8e360298b
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ public class VetController {
|
|||
this.clinicService = clinicService;
|
||||
}
|
||||
|
||||
@RequestMapping(value="/vets.xml")
|
||||
@RequestMapping(value={"/vets.xml","/vets.html"})
|
||||
public String showVetList(Map<String, Object> model) {
|
||||
// Here we are returning an object of type 'Vets' rather than a collection of Vet objects
|
||||
// so it is simpler for Object-Xml mapping
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue