This commit is contained in:
crusader 2017-06-29 14:17:18 +09:00
commit e232a6327c
3 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ public class EmailAuthService {
@Autowired @Autowired
private JavaMailSender mailSender; private JavaMailSender mailSender;
public void sendEmail(String to, String sub, String message) { public void sendEmail(String to, String sub, String message) {
try { try {

View File

@ -16,6 +16,8 @@ import java.util.Properties;
//@ComponentScan(basePackages = "com.loafle.overflow", includeFilters = @ComponentScan.Filter(EmailAuth.class)) //@ComponentScan(basePackages = "com.loafle.overflow", includeFilters = @ComponentScan.Filter(EmailAuth.class))
public class MailConfiguration { public class MailConfiguration {
@Value("${mail.host}") @Value("${mail.host}")
private String host; private String host;
@Value("${mail.port}") @Value("${mail.port}")

View File

@ -12,6 +12,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/** /**
* Created by geek on 17. 6. 28. * Created by geek on 17. 6. 28.
*/ */
@Ignore @Ignore
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = {AppConfig.class,MailConfiguration.class}) @ContextConfiguration(classes = {AppConfig.class,MailConfiguration.class})