반응형

2022/06 4

스프링부트 이메일 발송(구글 계정 이용)

1. spring-boot-starter-mail 라이브러리 추가 // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-mail implementation group: 'org.springframework.boot', name: 'spring-boot-starter-mail', version: '2.6.3' 2. application.properties 에 설정 세팅 spring.mail.host=smtp.gmail.com spring.mail.port=587 spring.mail.username= //구글 계정 xxxxxxxxxxx@google.com spring.mail.password= //구글 보안 ->..

스프링 2022.06.20

스프링부트 웹소켓 실시간 푸시 알림(좋아요, 댓글)

1. 스프링부트 웹 소켓 라이브러리 추가 // https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-websocket implementation group: 'org.springframework.boot', name: 'spring-boot-starter-websocket' 2. EchoHandler 작성 package com.reviewer.portfolio.controller; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.springframework.stereot..

스프링 2022.06.20

웹 서버와 WAS를 분리하는 이유?

웹 서버란? 클라이언트의 요청 중 정적 컨텐츠를 담당하여 처리하는 서버 ex) Apache, Nginx ... WAS란? DB 조회나 프로그램에 대한 처리 결과를 요구하는 동적인 컨텐츠를 처리하기 위해 만들어진 애플리케이션 서버 WAS = Web Server + Web Container ex) Apache Tomcat, JEUS ... 웹 서버와 WAS를 분리하는 이유? 1. WAS가 정적컨텐츠와 동적컨텐츠를 모두 처리하게 되면 서버에 부하가 발생하게 된다. 따라서, 웹서버가 정적인 컨텐츠를 처리하고, WAS는 동적인 컨텐츠만을 처리하도록 기능을 분리하여 서버의 부하를 방지할 수 있다. 2. 웹 서버에 여러 대의 WAS를 연결할 수 있기 때문에 웹 서버에서 많은 요청을 받아서 WAS로 적절하게 분배하여 ..

카테고리 없음 2022.06.09
반응형