This commit is contained in:
victoraso 2019-08-09 15:33:21 -03:00
parent e157f200f8
commit 0562f45f8a
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,14 @@
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!";
}
}

View file

@ -23,3 +23,4 @@ logging.level.org.springframework=INFO
# Maximum time static resources should be cached
spring.resources.cache.cachecontrol.max-age=12h