fix 修复 邮件开关位置错误问题

feature/model
疯狂的狮子li 2 years ago
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…
Cancel
Save