From 6d8a11f0a6245f2f70b23aa189545b110a5ba08f Mon Sep 17 00:00:00 2001 From: Prashant Khanal Date: Fri, 18 Nov 2016 11:15:38 -0800 Subject: [PATCH] @Qualifier annotation removed --- .../java/com/baeldung/spring/controllers/MailController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-mvc-email/src/main/java/com/baeldung/spring/controllers/MailController.java b/spring-mvc-email/src/main/java/com/baeldung/spring/controllers/MailController.java index 768a0f8e7b..286a661b65 100644 --- a/spring-mvc-email/src/main/java/com/baeldung/spring/controllers/MailController.java +++ b/spring-mvc-email/src/main/java/com/baeldung/spring/controllers/MailController.java @@ -26,6 +26,7 @@ import java.util.Set; @Controller @RequestMapping("/mail") public class MailController { + @Autowired public EmailServiceImpl emailService; @@ -33,7 +34,6 @@ public class MailController { private String attachmentPath; @Autowired - @Qualifier("templateSimpleMessage") public SimpleMailMessage template; private static final Map> labels;