We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ca6e23 commit 5f4305bCopy full SHA for 5f4305b
05data/data-demo/src/main/java/com/github/yibing/data/datademo/controller/OrderController.java
@@ -0,0 +1,21 @@
1
+package com.github.yibing.data.datademo.controller;
2
+
3
+import com.github.yibing.data.datademo.entity.Order;
4
+import com.github.yibing.data.datademo.service.OrderService;
5
+import org.springframework.beans.factory.annotation.Autowired;
6
+import org.springframework.web.bind.annotation.GetMapping;
7
+import org.springframework.web.bind.annotation.RestController;
8
9
+import java.util.List;
10
11
+@RestController
12
+public class OrderController {
13
14
+ @Autowired
15
+ private OrderService orderService;
16
17
+ @GetMapping("/order/query")
18
+ public List<Order> gerOrderList() {
19
+ return orderService.queryOrder();
20
+ }
21
+}
0 commit comments