Skip to content
Snippets Groups Projects
Commit 7ff5e857 authored by Keith Donald's avatar Keith Donald Committed by Mic
Browse files

app deploys and runs - initial commit

parent f09d67cc
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,8 @@ import org.springframework.web.bind.annotation.RequestMethod; ...@@ -8,7 +8,8 @@ import org.springframework.web.bind.annotation.RequestMethod;
public class HomeController { public class HomeController {
@RequestMapping(value="/", method = RequestMethod.GET) @RequestMapping(value="/", method = RequestMethod.GET)
public void getHome() { public String getHome() {
return "home";
} }
} }
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) {
}
}
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) {
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment