이벤트 order 이벤트 핸들링
This commit is contained in:
@@ -3,7 +3,7 @@ package com.example.template;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||
|
||||
@ResponseStatus(code = HttpStatus.INTERNAL_SERVER_ERROR) //(reason = "No Available stock!")
|
||||
@ResponseStatus(code = HttpStatus.INTERNAL_SERVER_ERROR, reason = "No Available stock!")
|
||||
public class OrderException extends RuntimeException {
|
||||
public OrderException(String message) {
|
||||
super(message);
|
||||
|
||||
@@ -3,7 +3,7 @@ server:
|
||||
|
||||
## 주문은 product 정보가 필요하다.
|
||||
## checkStock 를 true 로 준다면, product 서비스가 죽어있을때는 주문이 안된다.
|
||||
checkStock: false
|
||||
checkStock: true
|
||||
---
|
||||
spring:
|
||||
profiles: default
|
||||
|
||||
Reference in New Issue
Block a user