본문 바로가기
서버/Kotlin-Spring_Boot

Could not autowire. No beans of 'JavaMailSender' type found. 에러 해결

by HDobby 2023. 4. 11.

Spring boot 3.0.0 spring-boot-starter-mail을 사용하고 있습니다.

implementation("org.springframework.boot:spring-boot-starter-mail")

 

spring.mail 세팅들을 제대로 해주었는데도 갑자기 에러가 나옵니다.

@EnableAutoConfiguration을 추가해주면 에러가 사라집니다.

 


참고

728x90

댓글