mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-04-24 11:22:48 +00:00
app deploys and runs - initial commit
This commit is contained in:
parent
f09d67cc1c
commit
7ff5e857fd
3 changed files with 38 additions and 1 deletions
|
@ -8,7 +8,8 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|||
public class HomeController {
|
||||
|
||||
@RequestMapping(value="/", method = RequestMethod.GET)
|
||||
public void getHome() {
|
||||
public String getHome() {
|
||||
return "home";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
package org.springframework.samples.petclinic.owner;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public class StubOwnerRepository implements OwnerRepository {
|
||||
|
||||
public Collection<Owner> findOwnersByLastName(String lastName) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Owner getOwner(Long id) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void saveOwner(Owner owner) {
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
package org.springframework.samples.petclinic.pet;
|
||||
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public class StubPetRepository implements PetRepository {
|
||||
|
||||
public Pet getPet(Long owner, String name) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void savePet(Pet pet) {
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue