daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest Jan 17th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Service
  2. @Profile("local")
  3. @Qualifier("emailSender")
  4. public class FackeEmailSender {
  5. private static final Logger logger = LoggerFactory.getLogger(FackeEmailSender.class);
  6.    
  7. @Service
  8. @Profile("prod")
  9. public class EmailSender {
  10.     private static final Logger logger = LoggerFactory.getLogger(EmailSender.class);
  11.    
  12. spring.profiles.active=local
  13.    
  14. ***************************
  15. APPLICATION FAILED TO START
  16. ***************************
  17.  
  18. Description:
  19.  
  20. Parameter 0 of method setEmailSender in com.tdk.jms.EmailQueueListener required a bean of type 'com.tdk.services.EmailSender' that could not be found.
  21.  
  22.  
  23. Action:
  24.  
  25. Consider defining a bean of type 'com.tdk.services.EmailSender' in your configuration.
  26.    
  27. @Component
  28. class EmailQueueListener implements QueueListener {
  29.  
  30.  
  31.     private EmailSender emailSender;
  32.  
  33.  
  34.     @Autowired
  35.     void setEmailSender(EmailSender emailSender) {
  36.         this.emailSender = emailSender;
  37.     }
  38. ..
  39. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top