mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
Controller Done!
This commit is contained in:
parent
e157f200f8
commit
683ae9e0b9
1 changed files with 12 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
|||
package org.springframework.samples.petclinic.product;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
public class ProductController {
|
||||
@GetMapping("/products")
|
||||
public String showProductList(){
|
||||
return "Hello!";
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue