forked from DevFW-CICD/spring-petclinic
renaming controllers so they all have 'Controller' suffix
This commit is contained in:
parent
c690c9d05c
commit
aeeeace8a2
8 changed files with 22 additions and 18 deletions
|
|
@ -27,13 +27,13 @@ import org.springframework.web.bind.support.SessionStatus;
|
|||
@Controller
|
||||
@RequestMapping("/owners/new")
|
||||
@SessionAttributes(types = Owner.class)
|
||||
public class AddOwnerForm {
|
||||
public class AddOwnerController {
|
||||
|
||||
private final Clinic clinic;
|
||||
|
||||
|
||||
@Autowired
|
||||
public AddOwnerForm(Clinic clinic) {
|
||||
public AddOwnerController(Clinic clinic) {
|
||||
this.clinic = clinic;
|
||||
}
|
||||
|
||||
|
|
@ -32,13 +32,13 @@ import org.springframework.web.bind.support.SessionStatus;
|
|||
@Controller
|
||||
@RequestMapping("/owners/{ownerId}/pets/new")
|
||||
@SessionAttributes("pet")
|
||||
public class AddPetForm {
|
||||
public class AddPetController {
|
||||
|
||||
private final Clinic clinic;
|
||||
|
||||
|
||||
@Autowired
|
||||
public AddPetForm(Clinic clinic) {
|
||||
public AddPetController(Clinic clinic) {
|
||||
this.clinic = clinic;
|
||||
}
|
||||
|
||||
|
|
@ -29,13 +29,13 @@ import org.springframework.web.bind.support.SessionStatus;
|
|||
@Controller
|
||||
@RequestMapping("/owners/*/pets/{petId}/visits/new")
|
||||
@SessionAttributes("visit")
|
||||
public class AddVisitForm {
|
||||
public class AddVisitController {
|
||||
|
||||
private final Clinic clinic;
|
||||
|
||||
|
||||
@Autowired
|
||||
public AddVisitForm(Clinic clinic) {
|
||||
public AddVisitController(Clinic clinic) {
|
||||
this.clinic = clinic;
|
||||
}
|
||||
|
||||
|
|
@ -27,13 +27,13 @@ import org.springframework.web.bind.support.SessionStatus;
|
|||
@Controller
|
||||
@RequestMapping("/owners/{ownerId}/edit")
|
||||
@SessionAttributes(types = Owner.class)
|
||||
public class EditOwnerForm {
|
||||
public class EditOwnerController {
|
||||
|
||||
private final Clinic clinic;
|
||||
|
||||
|
||||
@Autowired
|
||||
public EditOwnerForm(Clinic clinic) {
|
||||
public EditOwnerController(Clinic clinic) {
|
||||
this.clinic = clinic;
|
||||
}
|
||||
|
||||
|
|
@ -30,13 +30,13 @@ import org.springframework.web.bind.support.SessionStatus;
|
|||
@Controller
|
||||
@RequestMapping("/owners/*/pets/{petId}/edit")
|
||||
@SessionAttributes("pet")
|
||||
public class EditPetForm {
|
||||
public class EditPetController {
|
||||
|
||||
private final Clinic clinic;
|
||||
|
||||
|
||||
@Autowired
|
||||
public EditPetForm(Clinic clinic) {
|
||||
public EditPetController(Clinic clinic) {
|
||||
this.clinic = clinic;
|
||||
}
|
||||
|
||||
|
|
@ -23,13 +23,13 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|||
* @author Arjen Poutsma
|
||||
*/
|
||||
@Controller
|
||||
public class FindOwnersForm {
|
||||
public class FindOwnersController {
|
||||
|
||||
private final Clinic clinic;
|
||||
|
||||
|
||||
@Autowired
|
||||
public FindOwnersForm(Clinic clinic) {
|
||||
public FindOwnersController(Clinic clinic) {
|
||||
this.clinic = clinic;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue