Cannot Resolve NoSuchBeanException for given Qualifier #10671
-
|
Hi Folks-
I tried constructor based injection and that did not seem to work. I tried using @Inject instead of @bean and that did not work either. This is the object I am trying to create This is the factory class with the named annotation And this would be the code that needs the HttpClient Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Ok- Really dumb but maybe this could help someone one day. The above code works. My problem was I had the Factory class in my test folder. That is why it was working in junit. |
Beta Was this translation helpful? Give feedback.
Ok- Really dumb but maybe this could help someone one day. The above code works. My problem was I had the Factory class in my test folder. That is why it was working in junit.