mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-03 11:05:58 +00:00
!79 修复 无法注入mailProperties 导致 resource 模块无法启动问题
Merge pull request !79 from 书中自有颜如玉/dev
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user