-
spring boot 로컬에서 smtp mail 테스트하기IT/spring 2021. 2. 18. 11:11
로컬에서 smtp mail 테스트 하는 방법 입니다. maildev docker 준비 docker run -p 80:80 -p 25:25 maildev/maildev dependencies { ... implementation 'org.springframework.boot:spring-boot-starter-mail' } test { ... String activeProfile = System.properties['spring.profiles.active'] println "zone: $activeProfile" systemProperty "spring.profiles.active", activeProfile } build.gradle @Slf4j @Configuration public class Cor..