fix: 修复 无法注入mailProperties 导致 resource 模块无法启动问题

2.X
lishuyan 2 years ago
parent 88669c5834
commit 1d24864379

@ -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 MailConfiguration {
@Bean
@ConditionalOnProperty(value = "mail.enabled", havingValue = "true")
public MailAccount mailAccount(MailProperties mailProperties) {
MailAccount account = new MailAccount();
account.setHost(mailProperties.getHost());

Loading…
Cancel
Save