Spring 3

Spring Boot 원리 : 의존성(Dependency) 관리

이 글은 인프런의 백기선님의 강좌를 수강하며 정리한 글입니다. 1. 서론 예전 Spring Legacy Project의 경우 스프링 프레임워크의 버전업이든지, 써드파티의 버전업이든지 서로간의 의존성 충돌이 일어나기 시작하면 해결하는데 시간이 꽤 걸린다. 어떻게 해서 Spring Boot(이하 스프링 부트)는 어떻게 버전 명시 없이 의존성이 주입되는 것일까? 우선 스프링 부트 프로젝트의 pom.xml을 살펴봅시다. 2. Parent : Dependency Management + Resource Filtering + Plugin Configuration pom.xml(Maven) org.springframework.boot spring-boot-starter-parent 2.1.7.RELEASE 간단하게도,..

간단한 스프링 스케줄러(Spring Scheduler) 사용하기 : @Scheduled Annotation

Spring Quartz 없이 간단하게 스케줄러를 사용해보자. 1. @EnableScheduling package me.rooted.mail; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.scheduling.annotation.EnableScheduling; @EnableScheduling @SpringBootApplication public class SpringMailThymeleafApplication { public static void main(String[] args) { Spr..

Spring Boot 메일 전송 : Spring Boot 2, Mail, Thymeleaf

Spring Boot 2.x 기준 Mail Send Client를 간단히 소개해봅니다. 기 프로젝트에 적용하실 분들은 1-2로, 신규 프로젝트로 진행하실 분들은 1-1로 봐주시면 되겠습니다.1-1. 프로젝트 생성 1-2. Maven dependency(pom.xml) 설정 org.springframework.boot spring-boot-starter-mail org.springframework.boot spring-boot-starter-thymeleaf 2. 프로젝트 구조 3. src/main/resources/application.properties 설정## thymeleaf default settingsspring.thymeleaf.prefix=classpath:/templates/spri..