mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	fix 修复 邮件开关位置错误问题
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 MailConfig {
 | 
			
		||||
 | 
			
		||||
    @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