Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
테이블 생성 중 발생한 오류 수정
User
-Mall
의존관계를 끊은 뒤Favorite
엔티티를 만들었었고, 삭제했던 내용과 관련된 코드를 일부 수정해주지 않아 서버가 실행되지 않는 문제가 있었습니다.Mall
엔티티에서Favorite
에 대한mappedBy
설정값도 잘못 되어 같이 수정Rank
엔티티의 테이블이 생성되지 않는 문제가 있었습니다. 원인은 Rank가 MySQL 예약어에 포함돼서였고@Table
파라미터에 들어가는rank
의 양 옆을 백틱으로 감싸서 해결했습니다.타입 수정
MallDto
->MallPreviewDto
/api/malls/preview/mobile
->/api/malls/preview
MallRank()
)와 이름이 중복돼 수정했습니다:MallRank()
->favoriteMall()
MeasurementRepository
->Measurement
이외 오류 수정
User
에서ageRange
값을 설정해주는 로직이 잘못돼 수정했습니다.스프링 시큐리티 적용 (로그인/회원가입)
email
로 설정했습니다.http.csrf.disable()
을 적용했습니다.추후에 해당 코드 삭제 후 토큰을 발급받아 처리할 수 있도록 수정할 계획입니다.
API 문서화
Swagger 적용 후 테스트까지 완료했습니다.
localhost:8080/swagger-ui/index.html 또는 localhost:8080/api-docs에서 접속할 수 있습니다.