-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[톰캣 구현하기 1 & 2단계] 파워(송재백) 미션 제출합니다 (#348)
* feat: httpRequest 구현 * feat: httpResponse 구현 * feat: HttpProcessor 구현 * chore: 학습 테스트 * feat: html 파일을 읽어오기위한 FileIOUtils 생성 * feat: servlet mapper를 통해서 컨트롤러를 선택할 수 있게 수정 * feat: post요청으로 회원가입 로그인을 수행하도록 구현 * feat: 세션 구현 및 로그인시 세션에 유저정보를 저장하게 구현 * feat: 모든 요청에 세션을 생성하지않고 특정 요청에만 세션을 생성할 수 있게 수정 * feat: 컨트롤러 중복 코드 제거 및 리펙터링 * feat: HttpRequest 생성자 분리 및 리팩터링 * feat: HttpResponse 순서대로 출력하기위해 LinkedHashMap사용 * feat: 접근제어자 등 리팩터링 * feat: 컨트롤러 중복코드 제거 * feat: isNotRedirect에서 NPE이 발생하는 문제 해결 * error: Http11Processor 클래스에 개행이 제대로 되지않는 문제 해결 * refactor: HttpHeaders 상수 클래스 생성 * feat: HttpServlet안에 로직을 넣기에는 경우에 수가 많아서 각 컨트롤러에서 뷰를 렌더링 하도록 수정 * refactor: sonarqube java:S2583 반영 * fix: session을 제대로 불러오지 못하는 문제 해결 * fix: 페이지를 제대로 랜더링 하지못하는 문제 해결 * feat: 테스트 추가 작성 및 리팩터링 * chore: 캐시 학습 테스트 * feat: RequestParam이 인코딩된 문자열을 읽을수있게 수정
- Loading branch information
Showing
43 changed files
with
1,130 additions
and
144 deletions.
There are no files selected for viewing
This file contains 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 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
22 changes: 18 additions & 4 deletions
22
study/src/main/java/cache/com/example/etag/EtagFilterConfiguration.java
This file contains 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,26 @@ | ||
package cache.com.example.etag; | ||
|
||
import cache.com.example.version.ResourceVersion; | ||
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; | ||
// } | ||
private final ResourceVersion version; | ||
|
||
public EtagFilterConfiguration(final ResourceVersion version) { | ||
this.version = version; | ||
} | ||
|
||
@Bean | ||
public FilterRegistrationBean<ShallowEtagHeaderFilter> shallowEtagHeaderFilter() { | ||
FilterRegistrationBean<ShallowEtagHeaderFilter> filterRegistrationBean = new FilterRegistrationBean<>( | ||
new ShallowEtagHeaderFilter()); | ||
filterRegistrationBean.addUrlPatterns("/etag"); | ||
filterRegistrationBean.addUrlPatterns("/resources/"+version.getVersion()+"/js/*"); | ||
return filterRegistrationBean; | ||
} | ||
} |
This file contains 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 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 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 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.