Add new greetingcontroller file

This commit is contained in:
singhr 2025-04-28 15:00:37 -04:00
parent 0c88f916db
commit 73bbc6d0c3
2 changed files with 23 additions and 0 deletions

View file

@ -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";
}
}

View file

@ -0,0 +1,5 @@
package org.springframework.samples.petclinic.owner;
public class GreetingControllerTest
{
}