Controller Done!

This commit is contained in:
ipagnoncelli 2019-08-09 15:33:54 -03:00
parent e157f200f8
commit 683ae9e0b9

View file

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