목록전체 글 (83)
종우의 컴퓨터 공간
출처: https://www.youtube.com/watch?v=4ChsxKYanp8&t=1796s&ab_channel=%EA%B0%95%EC%84%B1%EB%AA%A8
출처: https://www.youtube.com/watch?v=aziXnGuTuMs&t=1458s&ab_channel=%EC%95%88%EC%9D%B8%EB%AA%A8%EC%9D%98%ED%81%B4%EB%9E%98%EC%8B%9D%EC%9D%B4%EC%95%8C%EA%B3%A0%EC%8B%B6%EB%8B%A4
이전 포스트인 커스텀 어노테이션 중 ElementType.PARAMETER 과 연관이 있는 포스팅이다. 참조: https://jwlim94.tistory.com/17 커스텀 어노테이션(Custom Annotation) 만들기 커스텀 어노테이션이란? - 프로그램에 관한 정보를 제공하거나 코드에 정보를 추가할 때 사용하는 것을 어노테이션이라고 한다. 대표적인 스프링부트 어노테이션에는 @Controller, @SpringBootApplicatio jwlim94.tistory.com HandlerMethodArgumentResolver 이란? - parameter으로 AOP를 구현하는 스프링의 전략 인터페이스 중 하나이다. - 전략 패턴의 일종으로 컨트롤러(Controller) 메소드에서 특정 조건에 해당하는 ..

커스텀 어노테이션이란? - 프로그램에 관한 정보를 제공하거나 코드에 정보를 추가할 때 사용하는 것을 어노테이션이라고 한다. 대표적인 스프링부트 어노테이션에는 @Controller, @SpringBootApplication 등이 있다. - 하지만 위 예시의 어노테이션들은 이미 만들어진 어노테이션들이고, 직접 커스텀해서 어노테이션을 만들 수 있는데, 이를 커스텀 어노테이션이라고 한다. - 같은 코드가 반복되는 부분을 해결하기 위해 어노테이션으로 만들기도 한다. 커스텀 어노테이션을 만드는 방법? @Target(ElementType.PARAMETER) @Retention(RetentionPolicy.RUNTIME) public @interface LoginUser { } - 먼저 @interface를 추가하여 ..
We all know that HTTP is a stateless protocol. All request and responses are independent. The server cannot distinguish between new visitors and returning visitors. But sometimes we may need to keep track of client's activity across multiple requests. This is achieved using Session Management. It is a mechanism used by the Web container to stroe session information for a particular user. Session..
@EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter {...} - SecurityConfig 클래스는 접근 권한을 작성하는 클래스이다. - @EnableWebSecurity 어노테이션은 Spring Security 설정들을 활성화시켜 준다. - WebSecurityConfigurerAdapter를 상속받은 config 클래스에 @EnableWebSecurity 어노테이션을 달면SpringSecurityFilterChain이 자동으로 포함된다. 그래서 configure(HttpSecurity http) 메소드를 오버라이드하여 스프링 시큐리티 규칙을 작성할 수있다. .csrf().disable() - Sprin..
참조: https://jdm.kr/blog/234
Introduced in Java 8, the Stream API is used to process collections of objects. A stream is a sequence of objects that various methods which can pipelined to produce the desired result. The features of Java stream are - A stream is not a data structure instead it takes input from the collections, Arrays, or I/O channels. - Streams do not change the original data structure, they only provide the ..