2023년 9월 14일

출처:

https://github.com/313DEVGRP/Java-Service-Tree-Framework-Backend-Core

Frontend-Web & Middle-Proxy - pdService

Backend-Core로 전달된 URL

http://localhost:9999/auth-user/api/arms/pdServicePure/getPdServiceMonitor.do?_=1694586233799

1. PdServicePureController의 getPdServiceMonitor.do 메서드를 호출

// PdServicePureController의 getPdServiceMonitor 메서드 
@ResponseBody
@RequestMapping(
        value = {"/getPdServiceMonitor.do"},
        method = {RequestMethod.GET}
)
public ResponseEntity<?> getPdServiceMonitor(PdServicePureDTO pdServicePureDTO, ModelMap model, HttpServletRequest request) throws Exception {

    log.info("PdServicePureController:: getPdServiceMonitor");
    PdServicePureEntity pdServicePureEntity = modelMapper.map(pdServicePureDTO, PdServicePureEntity.class);

    return ResponseEntity.ok(CommonResponse.success(pdService.getNodesWithoutRoot(pdServicePureEntity)));

}

2. PdService 의 getNodeWithoutRoot() 메서드를 실행 → 근데 이게 실행 안되고 TreeServiceImpl의 getNodeWithoutRoot(T t)가 호출

list(List<PdServicePureEntity>) return, 1의 ResponseEntity로 반환한다.