Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
ca17b7ac
Commit
ca17b7ac
authored
Jan 01, 2020
by
Junling Bu
Browse files
fix[litemall-core]: 删除不必要的Bean注解,避免实例化对象
parent
2db5d327
Changes
1
Hide whitespace changes
Inline
Side-by-side
litemall-core/src/main/java/org/linlinjava/litemall/core/notify/config/NotifyAutoConfiguration.java
View file @
ca17b7ac
...
...
@@ -48,7 +48,6 @@ public class NotifyAutoConfiguration {
return
notifyService
;
}
@Bean
public
JavaMailSender
mailSender
()
{
NotifyProperties
.
Mail
mailConfig
=
properties
.
getMail
();
JavaMailSenderImpl
mailSender
=
new
JavaMailSenderImpl
();
...
...
@@ -69,7 +68,6 @@ public class NotifyAutoConfiguration {
return
mailSender
;
}
@Bean
public
TencentSmsSender
tencentSmsSender
()
{
NotifyProperties
.
Sms
smsConfig
=
properties
.
getSms
();
TencentSmsSender
smsSender
=
new
TencentSmsSender
();
...
...
@@ -79,7 +77,6 @@ public class NotifyAutoConfiguration {
return
smsSender
;
}
@Bean
public
AliyunSmsSender
aliyunSmsSender
()
{
NotifyProperties
.
Sms
smsConfig
=
properties
.
getSms
();
AliyunSmsSender
smsSender
=
new
AliyunSmsSender
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment