This commit is contained in:
lee-soo-heon
2019-09-05 16:31:58 +09:00
parent 74eedd1fef
commit 9beea4d017

View File

@@ -21,10 +21,11 @@ public class Application {
int i = 1; int i = 1;
for(String p : products){ for(String p : products){
Product product = new Product(); Product product = new Product();
product.setImageUrl("https://github.githubassets.com/images/modules/profile/profile-joined-github.png");
product.setName(p); product.setName(p);
product.setPrice(i*10000); product.setPrice(i*10000);
product.setStock(i*10); product.setStock(i*10);
product.setImageUrl("https://github.githubassets.com/images/modules/profile/profile-joined-github.png");
i++; i++;
productRepository.save(product); productRepository.save(product);
} }