diff --git a/src/main/java/org/springframework/samples/petclinic/product/ProductController.java b/src/main/java/org/springframework/samples/petclinic/product/ProductController.java new file mode 100644 index 000000000..0eac17155 --- /dev/null +++ b/src/main/java/org/springframework/samples/petclinic/product/ProductController.java @@ -0,0 +1,23 @@ +package org.springframework.samples.petclinic.product; + +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + + + + @RestController + + class ProductController { + + + + + @GetMapping("/products") + public String showProductList() { + return "Retornou o Product List!!!"; + + + } + + } + diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index b93ff4de3..140253bb4 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -23,3 +23,5 @@ logging.level.org.springframework=INFO # Maximum time static resources should be cached spring.resources.cache.cachecontrol.max-age=12h + +server.port=8086 \ No newline at end of file