From 9beea4d0175b3de4b03f79f1c2966cca1fb7a78d Mon Sep 17 00:00:00 2001 From: lee-soo-heon Date: Thu, 5 Sep 2019 16:31:58 +0900 Subject: [PATCH] ADD --- src/main/java/com/example/template/Application.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/example/template/Application.java b/src/main/java/com/example/template/Application.java index 4ff47e5..2bac60b 100644 --- a/src/main/java/com/example/template/Application.java +++ b/src/main/java/com/example/template/Application.java @@ -21,10 +21,11 @@ public class Application { int i = 1; for(String p : products){ Product product = new Product(); + + product.setImageUrl("https://github.githubassets.com/images/modules/profile/profile-joined-github.png"); product.setName(p); product.setPrice(i*10000); product.setStock(i*10); - product.setImageUrl("https://github.githubassets.com/images/modules/profile/profile-joined-github.png"); i++; productRepository.save(product); }