mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
This commit is contained in:
parent
e157f200f8
commit
07f8e57414
2 changed files with 25 additions and 0 deletions
|
@ -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!!!";
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -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
|
Loading…
Reference in a new issue