Chore: API 요청 포트
This commit is contained in:
parent
dd36bfc557
commit
1f4772156c
@ -14,6 +14,7 @@ import com.worlabel.global.exception.ErrorCode;
|
|||||||
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
import io.swagger.v3.oas.annotations.Parameter;
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import jakarta.servlet.http.HttpServletRequest;
|
||||||
import jakarta.validation.Valid;
|
import jakarta.validation.Valid;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
@ -77,7 +78,11 @@ public class ProjectController {
|
|||||||
@PostMapping("/projects/{project_id}/auto")
|
@PostMapping("/projects/{project_id}/auto")
|
||||||
public void autoLabeling(
|
public void autoLabeling(
|
||||||
@PathVariable("project_id") final Integer projectId,
|
@PathVariable("project_id") final Integer projectId,
|
||||||
@RequestBody final AutoModelRequest request) {
|
@RequestBody final AutoModelRequest request,
|
||||||
|
HttpServletRequest httpServletRequest) {
|
||||||
|
String clientIp = httpServletRequest.getRemoteAddr();
|
||||||
|
int clientPort = httpServletRequest.getRemotePort();
|
||||||
|
log.debug("클라이언트 IP: {}, 포트 번호: {}", clientIp, clientPort);
|
||||||
projectService.autoLabeling(projectId, request);
|
projectService.autoLabeling(projectId, request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user