Develop/Java

    [Java] Spring Boot Rest API 응답 코드 변경

    ResponseEntity 사용 사용처 Spring Boot에서 API Return 시 응답 코드 변경에 사용 Package org.springframework.http.ResponseEntity 사용법 return new ResponseEntity(SEND_DATA , HTTP_STATUS) SEND_DATA : JSON 형식으로 보낼 파일 HTTP_STATUS : 응답 코드 org.springframework.http.HttpStatus Example @RequestMapping(method = RequestMethod.GET, path = "login") public ResponseEntity Login(String id, String password){ try{ LoginEntity userinf..

    [Eclipse] The selection cannot be launched and there are no recent launches

    The selection cannot be launched and there are no recent launches Eclipse에서 자신(프로젝트)의 위치를 찾지 못하여 발생하는 오류. 해결 방법 Window > Preferences의 Run/Debug > Launching > Launch Operation에서 'Launch the associated project' 선택