목록bug report (2)
기록방
AWS EC2 환경에 Docker-compose를 이용해서 PostgreSQL 이미지를 컨테이너로 실행시켰다.로컬 IntelliJ에서 연결해서 사용하고 싶었는데, 계속 다음과 같은 오류가 났다. [28P01] FATAL: password authentication failed for user "[유저이름]" Docker-compose.yaml에 설정한 PostgreSQL 명령어는 다음과 같다. version: '3'services: # ~~~ postgres: container_name: postgres_container image: postgres:16.2 restart: always environment: POSTGRES_USER: --생략-- POSTGRE..
📣 상황 스프링부트에서 외부 api로 요청을 날려서 응답 정보를 Map에 저장해 반환하는 서비스를 만들었다. 이 Map을 컨트롤러에서 ResponseEntity의 Body에 담아서 반환하고자 했다. 🌵 코드 // Controller @PostMapping("/request") public ResponseEntity sendRequest(@RequestBody RequestRequestDTO requestRequestDTO) { return new ResponseEntity(collectionService.sendRequest(requestRequestDTO), HttpStatus.OK); } // Service public Map sendRequest(RequestRequestDTO requestRequ..