fix 修复 邮件开关位置错误问题
This commit is contained in:
parent
42f5735c55
commit
b022c12419
@ -13,11 +13,11 @@ import org.springframework.context.annotation.Bean;
|
||||
* @author Michelle.Chung
|
||||
*/
|
||||
@AutoConfiguration
|
||||
@ConditionalOnProperty(value = "mail.enabled", havingValue = "true")
|
||||
@EnableConfigurationProperties(MailProperties.class)
|
||||
public class MailConfig {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnProperty(value = "mail.enabled", havingValue = "true")
|
||||
public MailAccount mailAccount(MailProperties mailProperties) {
|
||||
MailAccount account = new MailAccount();
|
||||
account.setHost(mailProperties.getHost());
|
||||
|
Loading…
x
Reference in New Issue
Block a user