springboot

SpringBoot

SpringBoot WAS 기본 이해

기본적으로 서버는 WebServer를 앞에 두고, WAS를 통해 db 커넥을 비롯한 작업들을 수행한 뒤 다시 내보내게 되는데, 이때 WebServer에는 Nginx, Apache 등이 있고, WAS에는 Tomcat 등이 있다. 기본적으로 Spring Boot에는 아파치 톰캣이 내장되어있어 사용자가 서버로 요청을 보내게되면, 특정 포트로 오는 요청을 잡아 SpringBoot 어플리케이션으로 연결시켜주는 것이다. 그렇다면 WAS는 어떻게 스프링 어플리케이션 서블릿과 연동하는걸까? ServeltWebServerFactoryCustomize에서 servlet 생성 → DispatcherServletAutoConfiguration에서 DispatcherServlet 생성 ServeltWebServerFactory..

SpringBoot

Spring Async 사용시 SecurityContext Thread 전파 오류

Async Annotation을 사용하여 여러 multipartfile을 s3에 처리하는 기능을 포함하고 있는 Company Entity 생성 함수를 비동기로 실행하도록 처리하였습니다. @Async override fun companySignup(req: CompanySignupRequest, emailCheckCode: String, companyIntroduction: CompanyIntroductionRequest) { if (checkEmail(req.companyContact.email, emailCheckCode)) { ... } 그러나 test하던 중 API 자체는 200이 떴으나, 입력 값이 제대로 들어가지 않음을 확인할 수 있었습니다. (Company는 User를 상속받고 있었으며, In..

xlwdn98767
'springboot' 태그의 글 목록 (2 Page)