본문 바로가기
반응형

spring23

WebClient & WebClient vs RestTemplate 공통점 : HttpClient 모듈을 사용한다. 차이점 : RestTemplate : WebClient 이전에 만들어졌다. 동기로만 가능하며, deprecated 될 예정 WebClient : 동기 / 비동기 현 시점에서 RestTemplate을 사용할 수 없는것은 아니지만, 향후 확장성을 위해 WebClient를 사용해보도록 하자. WebClient 의존성 org.springframework.boot spring-boot-starter-webflux 기본 WAS는 netty로 설정되지만, jetty로 설정해도 된다. Instance 생성 Spring Boot 에선 WebClient.Builder 인터페이스가 기본 bean으로 등록 전역으로 커스텀하고 싶다면, WebClientCustomizer를 Bea.. 2021. 5. 20.
SpringBoot 참고 : https://velog.io/@max9106/Spring-Boot-SpringApplication- spring boot 란? 독립적인 app 빠르고 쉽게 만들수있게 해준다. 일반적인 설정 제공(tomcat 등) + 버전 ->> 커스텀가능 xml 설정 X, code generation X 설정 spring-boot-starter-parent -> 상속받은 많은 의존성 등록, 버전관리, 기본설정(리소스필터링, 플러그인설정) spring-boot-starter-web spring-boot-maven-plugin -> build시 실행 가능한 jar파일로 구조를 변경 Main-Class, Start-Class, Spring-Boot-Classes, Spring-Boot-Lib 통해 @SpringBo.. 2021. 2. 9.
SPRING SECURITY SPRING SECURITY DispatcherServlet 받기 이전에 ServletFilter를 통해 인증/인가 처리. (ServletFilter는 WAS담당이지만 DelegatingFilterProxy를 boot에서 SecurityFilterAutoConfiguration 설정하여서 서블릿에 등록, 요청이 오면 FilterChainProxy(스프링 필터)에게 위임) 필터를 통한 접근제어 프레임웤 용어 인증(Authentication) : 로그인 인가(Authorization) : 권한확인 AuthenticationFilter - 로그인url 감시 -> AuthenticationManager인증 -> 성공이면 Authentication를 SecurityContextHolder에 저장 Authentic.. 2021. 2. 9.
728x90
반응형