From d71db6c54fca9d5735f38c0cb3fa624ae11d4d1c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 16 Mar 2018 14:57:21 +0300 Subject: server: exclude boot mail autoconfiguration --- juick-server/src/main/java/com/juick/server/ApiServer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/juick-server/src/main/java/com/juick/server/ApiServer.java b/juick-server/src/main/java/com/juick/server/ApiServer.java index 3133b1af..5d273f37 100644 --- a/juick-server/src/main/java/com/juick/server/ApiServer.java +++ b/juick-server/src/main/java/com/juick/server/ApiServer.java @@ -1,11 +1,14 @@ package com.juick.server; import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.mail.MailSenderAutoConfiguration; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; @SpringBootApplication +@EnableAutoConfiguration(exclude = { MailSenderAutoConfiguration.class }) public class ApiServer extends SpringBootServletInitializer { @Override -- cgit v1.2.3