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
private JavaMailSender mailSender;
public void sendEmail(String to, String sub, String message) {
try {

View File

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

View File

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