mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:25:50 +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…
Reference in a new issue