Merge branch 'master' of https://git.loafle.net/overflow/overflow_server
This commit is contained in:
commit
e232a6327c
|
@ -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 {
|
||||||
|
|
|
@ -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}")
|
||||||
|
|
|
@ -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})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user