상품 이미지 추가
This commit is contained in:
@@ -24,7 +24,8 @@ public class Application {
|
||||
product.setName(p);
|
||||
product.setPrice(i*10000);
|
||||
product.setStock(i*10);
|
||||
product.setImageUrl("https://github.githubassets.com/images/modules/profile/profile-joined-github.png");
|
||||
product.setImageUrl("/goods/img/"+p+".jpg");
|
||||
// product.setImageUrl("https://github.githubassets.com/images/modules/profile/profile-joined-github.png");
|
||||
i++;
|
||||
productRepository.save(product);
|
||||
}
|
||||
|
||||
BIN
src/main/resources/static/goods/img/CLOCK.jpg
Normal file
BIN
src/main/resources/static/goods/img/CLOCK.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
BIN
src/main/resources/static/goods/img/NOTEBOOK.jpg
Normal file
BIN
src/main/resources/static/goods/img/NOTEBOOK.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 159 KiB |
BIN
src/main/resources/static/goods/img/RADIO.jpg
Normal file
BIN
src/main/resources/static/goods/img/RADIO.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
BIN
src/main/resources/static/goods/img/TABLE.jpg
Normal file
BIN
src/main/resources/static/goods/img/TABLE.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
src/main/resources/static/goods/img/TV.jpg
Normal file
BIN
src/main/resources/static/goods/img/TV.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 152 KiB |
Reference in New Issue
Block a user