Skip to content

[chore] 스웨거 추가 및 시큐리티 설정#17

Merged
dohy-eon merged 3 commits intomainfrom
chore/#15
Jul 18, 2025
Merged

[chore] 스웨거 추가 및 시큐리티 설정#17
dohy-eon merged 3 commits intomainfrom
chore/#15

Conversation

@dohy-eon
Copy link
Copy Markdown
Member

[chore] 스웨거 추가 및 시큐리티 설정

😺 Issue

✅ 작업 리스트

  • Spring Security에 Swagger 관련 경로 permitAll() 적용
  • UserController에 Swagger 어노테이션 추가 (@operation, @tag)
  • 중복되는 코드 삭제

⚙️ 작업 내용

  • API 명세용 SecurityConfig 수정 및 SwaggerConfig 파일 작성 진행
  • 중복되는 implementation 'org.springframework.boot:spring-boot-starter-data-jpa' 코드 삭제
  • 이후 UserController에 스웨거 관련 주석 추가

📷 테스트 / 구현 내용

image image

@dohy-eon dohy-eon self-assigned this Jul 18, 2025
@dohy-eon dohy-eon requested review from Vloeiolzlr and removed request for Vloeiolzlr July 18, 2025 07:45
@dohy-eon dohy-eon added ♻️ refactor 리팩토링 / needs to refactor something 📦 chore 세세한 변경사항 / tiny changes 😺 도현 labels Jul 18, 2025
@dohy-eon dohy-eon linked an issue Jul 18, 2025 that may be closed by this pull request
Copy link
Copy Markdown

@ysw789 ysw789 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

참고사항

API 서버 엔드포인트 최상단에 /api 를 고정적으로 넣고 싶으면 다음과 같이 설정하면 됩니다. 이 경우 사전에 설정되어있는 /swagger-ui/** 등의 엔드포인트에도 앞에 /api 가 붙게 되므로 유의할 필요는 있습니다.

server:
  servlet:
    context-path: /api

Comment on lines +37 to +38
"/join",
"/login",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

하단에 이미 /api/users/** 로의 요청을 개방하도록 설정했으므로 필요 없을 것 같습니다.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

참고사항 좋습니다 처음 알았네여

@kjunh972
Copy link
Copy Markdown
Contributor

👍

@dohy-eon dohy-eon merged commit 07e600b into main Jul 18, 2025
1 check passed
@dohy-eon dohy-eon deleted the chore/#15 branch July 19, 2025 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📦 chore 세세한 변경사항 / tiny changes ♻️ refactor 리팩토링 / needs to refactor something 😺 도현

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[chore] 스웨거 UI 연동

3 participants