From 7fabddcd11e485536b8516ca2e96e6193bedb88f Mon Sep 17 00:00:00 2001 From: tanghc Date: Wed, 11 Dec 2019 10:32:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sop/storyweb/controller/TraditionalWebappController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sop-example/sop-story/sop-story-web/src/main/java/com/gitee/sop/storyweb/controller/TraditionalWebappController.java b/sop-example/sop-story/sop-story-web/src/main/java/com/gitee/sop/storyweb/controller/TraditionalWebappController.java index 9c199f1f..08e88f8e 100644 --- a/sop-example/sop-story/sop-story-web/src/main/java/com/gitee/sop/storyweb/controller/TraditionalWebappController.java +++ b/sop-example/sop-story/sop-story-web/src/main/java/com/gitee/sop/storyweb/controller/TraditionalWebappController.java @@ -84,6 +84,8 @@ public class TraditionalWebappController { public Food getById(@PathVariable("id") Integer id) { Food food = new Food(); food.setId(id); + food.setName("香蕉"); + food.setPrice(BigDecimal.valueOf(100)); return food; }