Skip to content

4단계 - 세션 구현 하기 - 리뷰 요청#365

Merged
yongdae merged 57 commits intonext-step:headf1rstfrom
headF1rst:step4
Aug 15, 2022
Merged

4단계 - 세션 구현 하기 - 리뷰 요청#365
yongdae merged 57 commits intonext-step:headf1rstfrom
headF1rst:step4

Conversation

@headF1rst
Copy link

안녕하세요 리뷰어님!
4단계 요구사항인 세션을 구현해보았습니다.
또한 저번 피드백을 반영해서 화면 구성에 대한 책임을 View 객체에 위임해 봤습니다.
다양한 의견 주시면 감사하겠습니다!

headF1rst added 30 commits July 19, 2022 23:57
@headF1rst headF1rst closed this Aug 12, 2022
@headF1rst headF1rst reopened this Aug 12, 2022
@headF1rst headF1rst closed this Aug 12, 2022
@headF1rst headF1rst reopened this Aug 12, 2022
Copy link

@yongdae yongdae left a comment

Choose a reason for hiding this comment

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

세션 구하기 미션을 잘 수행해주셨네요. 💯
소소하지만 몇 가지 의견을 남겨놓았습니다.

확인하시고 다시 리뷰 요청 부탁드릴꼐요. 🔥

@@ -0,0 +1,9 @@
package mvc.view;

public class StaticViewResolver implements ViewResolver {
Copy link

Choose a reason for hiding this comment

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

의견 드린 부분을 고민해서 잘 반영해주셨네요. 💯

import java.util.Collections;
import java.util.Map;
import java.util.Set;

Copy link

Choose a reason for hiding this comment

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

이전 단계에서 의견을 드렸던 부분인데 다른 의견이 있으신가요? 🤔

import java.io.IOException;
import java.net.URISyntaxException;

public class SessionInterceptor implements Interceptor {
Copy link

Choose a reason for hiding this comment

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

Interceptor 개념을 사용해서 Session을 처리해주셨네요. 👍

Copy link

@yongdae yongdae left a comment

Choose a reason for hiding this comment

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

피드백을 잘 반영해주셨네요. 👍

반영해주신 부분에 대해 다시 의견을 남겨 놓았습니다.
이 부분은 다음 단계에서 같이 반영 부탁드릴께요.

수고하셨습니다. 😄

Comment on lines +43 to +45
executeInterceptorsPreHandle(request, response);
controller.service(request, response);
response.writeResponse();
response.writeResponse(dos);
Copy link

Choose a reason for hiding this comment

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

Interceptor과 Controller에 대한 처리가 분리되어서
이전보다 처리 방식을 이해하기 쉬운 코드가 된 것 같아요. 👍

requestBody.addAttribute(name, value);
}

public Map<String, Object> getBodyAttributes() {
Copy link

Choose a reason for hiding this comment

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

👍

@yongdae yongdae merged commit f1a75d1 into next-step:headf1rst Aug 15, 2022
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.

2 participants