java110 3 年之前
父節點
當前提交
669da79f9e

+ 3 - 0
springboot/src/main/java/com/java110/boot/controller/component/CallComponentController.java

@@ -104,6 +104,7 @@ public class CallComponentController extends DefaultAbstractComponentSMO {
             logger.error("调用api异常", e);
             responseEntity = new ResponseEntity<>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
         } catch (Exception e) {
+            e.printStackTrace();
             logger.error("调用api异常", e);
             String msg = "";
             if (e instanceof InvocationTargetException) {
@@ -173,9 +174,11 @@ public class CallComponentController extends DefaultAbstractComponentSMO {
         } catch (SMOException e) {
             /*MultiValueMap<String, String> headers = new HttpHeaders();
             headers.add("code", e.getResult().getCode());*/
+            e.printStackTrace();
             logger.error("调用组件异常", e);
             responseEntity = new ResponseEntity<>(e.getMessage(), HttpStatus.INTERNAL_SERVER_ERROR);
         } catch (Exception e) {
+            e.printStackTrace();
             logger.error("调用组件异常", e);
             String msg = "";
             if (e instanceof InvocationTargetException) {