mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:05:50 +00:00
Testing new controller (product)
This commit is contained in:
parent
e157f200f8
commit
5d5362194c
3 changed files with 20 additions and 0 deletions
|
@ -0,0 +1,4 @@
|
||||||
|
package org.springframework.samples.petclinic.product;
|
||||||
|
|
||||||
|
public class Product {
|
||||||
|
}
|
|
@ -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("/product")
|
||||||
|
public String showProductList(){
|
||||||
|
return "Hello";
|
||||||
|
}
|
||||||
|
}
|
|
@ -23,3 +23,5 @@ logging.level.org.springframework=INFO
|
||||||
|
|
||||||
# Maximum time static resources should be cached
|
# Maximum time static resources should be cached
|
||||||
spring.resources.cache.cachecontrol.max-age=12h
|
spring.resources.cache.cachecontrol.max-age=12h
|
||||||
|
|
||||||
|
server.port = 8090
|
||||||
|
|
Loading…
Reference in a new issue