Web/spring 113

[Spring] 요청에 따른 부가응답 추가하기

https://meetup.nhncloud.com/posts/148 Spring에서 요청에 따른 부가 응답 추가하기 (1) : NHN Cloud Meetup Spring에서 요청에 따른 부가 응답 추가하기 (1) meetup.nhncloud.com 해당 출처를 이용하여 코드 작성했습니다. 해당 블로그에서 MicroService 를 베이스로 사용한 부가 처리 작업 예시가 있어서 읽어보았다. OOP 의 특성을 최대한 살려서 코드를 작성했다고 하는데, 정리하자면 Interceptor를 이용하여 부가작업을 처리해주는 코드였다 테스트 코드도 있어서 공부하기에 적합할 것 같아 위의 링크 내용을 참조하여 나에게 맞게 코드를 작성해봤다 기본 API 에 기능을 추가한 것으로 구현 방법은 아래와 같다. 기본 API에 at..

Web/spring 2023.03.29

[Spring Interceptor] Introduction to Spring MVC HandlerInterceptor

https://www.baeldung.com/spring-mvc-handlerinterceptor * spring-web 종속 Spring MVC Handler HandlerMapping은 handler method를 URL에 매핑한다 DispatcherServlet request 처리 시 호출할 수 있다 the DispatcherServlet uses the HandlerAdapter to actually invoke the method. Spring Handler Interceptor a Spring interceptor is a class that either extends the HandlerInterceptorAdapter class or implements the HandlerIntercept..

Web/spring 2023.03.29

[Spring Junit Test] 2.11. Test Instance Lifecycle

https://junit.org/junit5/docs/current/user-guide/#writing-tests-test-instance-lifecycle JUnit 5 User Guide Although the JUnit Jupiter programming model and extension model do not support JUnit 4 features such as Rules and Runners natively, it is not expected that source code maintainers will need to update all of their existing tests, test extensions, and custo junit.org 잘못된 해석이 있다면 알려주세요 🐥 2.11..

Web/spring 2023.03.21

[Spring Batch] Configuring and Running a Job - (6) Advanced Metadata Usage

https://docs.spring.io/spring-batch/docs/current/reference/html/job.html#advancedMetaData Configuring and Running a Job If a group of Jobs share similar but not identical configurations, it may help to define a “parent” Job from which the concrete Job instances can inherit properties. Similar to class inheritance in Java, a “child” Job combines its elements and attr docs.spring.io 잘못된 내용이 있다면 알려..

Web/spring 2023.03.19

[Spring Batch] Configuring and Running a Job - (5) Running a Job

https://docs.spring.io/spring-batch/docs/current/reference/html/job.html#runningAJob Configuring and Running a Job If a group of Jobs share similar but not identical configurations, it may help to define a “parent” Job from which the concrete Job instances can inherit properties. Similar to class inheritance in Java, a “child” Job combines its elements and attr docs.spring.io 틀린 해석이 있다면 알려주세용 🍟 ..

Web/spring 2023.03.19
728x90