Skip to content

[23기_최승원] spring tutorial 미션 제출합니다.#2

Open
Seungwon326 wants to merge 4 commits intoCEOS-Developers:Seungwon326from
Seungwon326:Seungwon326
Open

[23기_최승원] spring tutorial 미션 제출합니다.#2
Seungwon326 wants to merge 4 commits intoCEOS-Developers:Seungwon326from
Seungwon326:Seungwon326

Conversation

@Seungwon326
Copy link

No description provided.

Comment on lines +126 to +130
1. `@Primary` 사용: 우선순위 정하기
2. `@Qualifier` 사용하기: 이름표 붙이기
- 주입받는 시점에 이름표를 가진 빈을 명시하는 방법
3. List, Map 사용: 모두 다 가져오기
- 모든 구현체를 다 가져와 상황에 맞게 골라 쓰고 싶을 때 사용

Choose a reason for hiding this comment

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

저는 선택부분이라 스킵했는데... 승원님이 작성해주셔서 어떻게 주입해야하는지 알게 되었습니다! 😄
이미 너무 잘 알고 계신 부분이라 조언이라 하기에는 부끄럽지만
동일 타입의 빈(Bean)이 여러 개일 때 구분하여 주입하기
[ List, Map으로 빈 주입 받기]
저는 여기서 도움이 많이 되어 링크 첨부해드립니다!

Copy link
Author

Choose a reason for hiding this comment

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

링크 올려주셔서 감사합니다!!
덕분에 이해하는데 도움 많이 됐습니다!!🤗

- **Spring Data**: 데이터 액세스 기술을 추상화하고, NoSQL 및 관계형 데이터베이스에 대한 통합 지원을 제공
- **Spring Data JPA:** SQL을 직접 작성하지 않고 인터페이스만으로 DB를 조작할 수 있게 해줌
- **Spring Security**: 보안 기능을 제공하여 인증과 권한 부여를 관리하고 웹 애플리케이션의 보안 강화

Choose a reason for hiding this comment

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

IoC, DI, AOP, PSA 같은 스프링 핵심 개념들을 한 번에 정리해주신 점이 좋았습니다.

승원님 README를 보면서 개념을 더 명확하게 정리할 수 있었고
이후에 다시 참고하기에도 좋은 자료가 될 것 같다고 느꼈습니다.

감사합니다.

5. **서비스 및 리포지토리 실행:** **Service** 레이어에서 핵심 로직을 수행하고, 필요하다면 **Repository**를 통해 **Database**에서 데이터를 가져오거나 저장
6. **ResponseEntity 생성:** 로직 처리가 완료되면 결과 데이터와 HTTP 상태 코드(예: 200 OK)를 담은 **ResponseEntity** 객체를 생성하여 반환
7. **결과 전달:** 컨트롤러가 반환한 결과는 다시 Handler Adapter를 거쳐 **Dispatcher Servlet**으로 전달(JSON 형식)
8. **최종 응답:** Dispatcher Servlet은 최종적으로 가공된 응답 데이터를 클라이언트에게 전송

Choose a reason for hiding this comment

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

MVC 패턴과 Spring MVC를 구분해서 설명해주신 부분이 좋았습니다.

이론적인 MVC 개념과 실제 프레임워크 구현을 같이 정리해주셔서
DispatcherServlet, HandlerMapping 같은 구성 요소들이
어떤 역할을 하는지 흐름을 이해하기 좋았습니다.

감사합니다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants