코드 컨벤션
이번 주 한 일
이외에도 기술적인 방향을 잡기 위한 질문을 정리해두시면 가장 좋습니다!
→ 단, “A는 어떻게 구현하나요”의 질문은 삼가주세요.
→ “A와 B를 알아보았는데, 둘 중 A가 낫다고 판단했는데 맞을까요?”의 식의 고민의 흔적을 담아 질문해주세요.
현재 A팀원이 AWS S3 버킷 생성하고 A가 주인이니 그 버킷을 사용 중입니다. 나중에 나머지 팀원들도 그 A팀원의 버킷에 참가하고 공유해서 사용하려는데 일단 properties부분 보니 이렇게 있습니다.
cloud.aws.s3.bucket=game-post-image cloud.aws.credentials.access-key=${access-key} cloud.aws.credentials.secret-key=${secret-key} cloud.aws.region.static=ap-northeast-2 cloud.aws.region.auto=false cloud.aws.stack.auto=false
⇒ dev(개발환경), stg, prd(운영환경)
이미 S3에 관련된 코드를 구현해서 늦은듯하지만 추가로 궁금한게 있습니다. S3를 사용해서 이미지들을 저장하면 나중 EC2에서 이미지 조회 하는 Api작동시 S3에서 이미지 조회Api의 해당 이미지를 가져 오려면 EC2랑 S3랑 연결하고 필터링하는 작업해야 하는듯하는데 만약 복잡하고 그러면 그냥 S3를 사용 안하고 EC2 하드 디스크에 이미지 파일들을 저장하는게 더 괜찮은 방법일까요?
DateTime 입력 시 Data too long 에러 관련 건
"statusCode": "INTERNAL_SERVER_ERROR",
"headers": {},
"typeMessageCode": "problemDetail.type.org.springframework.dao.DataIntegrityViolationException",
"titleMessageCode": "problemDetail.title.org.springframework.dao.DataIntegrityViolationException",
"detailMessageCode": "problemDetail.org.springframework.dao.DataIntegrityViolationException",
"detailMessageArguments": null,
"body": {
"type": "about:blank",
"title": "Internal Server Error",
"status": 500,
"detail": "could not execute statement [Data truncation: Data too long for column 'block_date' at row 1] [/* update for com.example.gamecommunity.domain.user.entity.User */update users set block_date=?,email=?,introduction=?,nickname=?,password=?,profile_url=?,ranking=? where id=?]; SQL [/* update for com.example.gamecommunity.domain.user.entity.User */update users set block_date=?,email=?,introduction=?,nickname=?,password=?,profile_url=?,ranking=? where id=?]"
}
Instant();
숙제: 멘토링 결과 다음 주까지 해올 일