mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 05:25:50 +00:00
Add new greetingcontroller file
This commit is contained in:
parent
0c88f916db
commit
73bbc6d0c3
2 changed files with 23 additions and 0 deletions
|
@ -0,0 +1,18 @@
|
||||||
|
package org.springframework.samples.petclinic.owner;
|
||||||
|
|
||||||
|
public class GreetingController
|
||||||
|
{
|
||||||
|
}
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/greeting")
|
||||||
|
public class GreetingController {
|
||||||
|
|
||||||
|
@GetMapping
|
||||||
|
public String greeting() {
|
||||||
|
return "greeting";
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
package org.springframework.samples.petclinic.owner;
|
||||||
|
|
||||||
|
public class GreetingControllerTest
|
||||||
|
{
|
||||||
|
}
|
Loading…
Reference in a new issue