|
|
@@ -6,6 +6,7 @@ import org.apache.commons.lang3.RandomStringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import javax.persistence.EntityNotFoundException;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.Optional;
|
|
|
@@ -19,7 +20,8 @@ public class OrderController {
|
|
|
|
|
|
@RequestMapping()
|
|
|
public List<Order> findAll() {
|
|
|
- return orderService.findAll();
|
|
|
+ throw new EntityNotFoundException();
|
|
|
+// return orderService.findAll();
|
|
|
}
|
|
|
|
|
|
@RequestMapping("{orderNo}")
|