Spring Cloud Netflix Eureka Server and Eureka Client

This commit is contained in:
Kunwar
2020-05-13 19:47:15 +05:30
parent 95b1629874
commit 3ce230724a

View File

@@ -11,8 +11,9 @@ import java.util.UUID;
@RestController
public class Eurekaclient2Controller {
private List<Product> productList = new ArrayList<>();
static{
List<Product> productList = new ArrayList<>();
productList = new ArrayList<>();
Product p1 = new Product(UUID.randomUUID(), "Guitar" , 99.99, "Music");
Product p2 = new Product(UUID.randomUUID(), "AWS Book" , 29.99, "Books");
Product p3 = new Product(UUID.randomUUID(), "Bread" , 9.99, "Food");