-
Notifications
You must be signed in to change notification settings - Fork 310
[Tomcat 구현하기 1 - 2단계] 페드로(류형욱) 미션 제출합니다. #578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
2033314
test(FileTest): FileTest 학습 테스트 풀이
hw0603 b3d673e
test(IOStreamTest): IOStreamTest 학습 테스트 풀이
hw0603 b27d81e
Style(StubSocket): `@Override` 어노테이션 명시
hw0603 cd8d965
feat: Http 요청, 응답 메시지를 관리하는 객체 구현
hw0603 49a8814
feat(Http11Processor): 정적 리소스 응답 기능 구현
hw0603 0fd8ee8
feat(Http11Processor): 확장자에 따라 Content-Type을 지정하도록 변경
hw0603 6334244
feat(ApiRouter): HTTP 메서드와 Path 별 매핑 관리 객체 추가
hw0603 d3c70e1
refactor(StaticResourceManager): 클래스명 변경
hw0603 798cf0d
refactor(HttpResponse): Body 설정 시 Content-Length를 자동으로 계산하도록 변경
hw0603 649dd8f
feat(LoginController): GET 메서드를 통한 로그인 기능 구현
hw0603 07209ac
feat(RegisterController): 회원가입 페이지 응답 기능 구현
hw0603 9834ead
feat(HttpRequest): Form 형태의 Body 지원
hw0603 97dd7fc
feat(Http11Processor): UUID 형태의 JSESSIONID 쿠키 발급 기능 구현
hw0603 f0e4864
test: HTTP 활용하기 학습 테스트 풀이
hw0603 2596a5a
feat: 세션을 활용한 로그인 유지 기능 구현
hw0603 c9e2401
refactor(Http11Processor): Http Message Body 읽는 로직 수정
hw0603 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 11 additions & 4 deletions
15
study/src/main/java/cache/com/example/etag/EtagFilterConfiguration.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
package cache.com.example.etag; | ||
|
||
import org.springframework.boot.web.servlet.FilterRegistrationBean; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.web.filter.ShallowEtagHeaderFilter; | ||
|
||
@Configuration | ||
public class EtagFilterConfiguration { | ||
|
||
// @Bean | ||
// public FilterRegistrationBean<ShallowEtagHeaderFilter> shallowEtagHeaderFilter() { | ||
// return null; | ||
// } | ||
@Bean | ||
public FilterRegistrationBean<ShallowEtagHeaderFilter> shallowEtagHeaderFilter() { | ||
ShallowEtagHeaderFilter filter = new ShallowEtagHeaderFilter(); | ||
FilterRegistrationBean<ShallowEtagHeaderFilter> filterRegistrationBean = new FilterRegistrationBean<>(filter); | ||
filterRegistrationBean.addUrlPatterns("/etag"); | ||
filterRegistrationBean.addUrlPatterns("/resources/*"); | ||
return filterRegistrationBean; | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
study/src/main/java/cache/com/example/version/HandlebarsConfig.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package cache.com.example.version; | ||
|
||
import com.github.jknack.handlebars.springmvc.HandlebarsViewResolver; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.web.servlet.ViewResolver; | ||
|
||
@Configuration | ||
public class HandlebarsConfig { | ||
|
||
private final VersionHandlebarsHelper versionHandlebarsHelper; | ||
|
||
public HandlebarsConfig(VersionHandlebarsHelper versionHandlebarsHelper) { | ||
this.versionHandlebarsHelper = versionHandlebarsHelper; | ||
} | ||
|
||
@Bean | ||
public ViewResolver handlebarsViewResolver() { | ||
HandlebarsViewResolver viewResolver = new HandlebarsViewResolver(); | ||
viewResolver.registerHelper("staticUrls", versionHandlebarsHelper); | ||
|
||
viewResolver.setPrefix("classpath:/templates/"); | ||
viewResolver.setSuffix(".html"); | ||
|
||
return viewResolver; | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
페드로가 미션 프로젝트에 제안한 PR 잘 읽었습니다.
문제점을 찾아 잘 해결하셨네요 👍