Commit ca17b7ac authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-core]: 删除不必要的Bean注解,避免实例化对象

parent 2db5d327
...@@ -48,7 +48,6 @@ public class NotifyAutoConfiguration { ...@@ -48,7 +48,6 @@ public class NotifyAutoConfiguration {
return notifyService; return notifyService;
} }
@Bean
public JavaMailSender mailSender() { public JavaMailSender mailSender() {
NotifyProperties.Mail mailConfig = properties.getMail(); NotifyProperties.Mail mailConfig = properties.getMail();
JavaMailSenderImpl mailSender = new JavaMailSenderImpl(); JavaMailSenderImpl mailSender = new JavaMailSenderImpl();
...@@ -69,7 +68,6 @@ public class NotifyAutoConfiguration { ...@@ -69,7 +68,6 @@ public class NotifyAutoConfiguration {
return mailSender; return mailSender;
} }
@Bean
public TencentSmsSender tencentSmsSender() { public TencentSmsSender tencentSmsSender() {
NotifyProperties.Sms smsConfig = properties.getSms(); NotifyProperties.Sms smsConfig = properties.getSms();
TencentSmsSender smsSender = new TencentSmsSender(); TencentSmsSender smsSender = new TencentSmsSender();
...@@ -79,7 +77,6 @@ public class NotifyAutoConfiguration { ...@@ -79,7 +77,6 @@ public class NotifyAutoConfiguration {
return smsSender; return smsSender;
} }
@Bean
public AliyunSmsSender aliyunSmsSender() { public AliyunSmsSender aliyunSmsSender() {
NotifyProperties.Sms smsConfig = properties.getSms(); NotifyProperties.Sms smsConfig = properties.getSms();
AliyunSmsSender smsSender = new AliyunSmsSender(); AliyunSmsSender smsSender = new AliyunSmsSender();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment