java - @autowired @qualifier pointing to a service in a jar file application -


I am using another application service because everything has already been created.

Use the interface class inside my application application jar, but when something called this code, something may be wrong.

BINFTC FACTORY = New ClassPathxLapplection Context ("/Contax -Controller.XML");

Even if my context-controller.xml is in this code

  & lt; Context: component-scan base-package = "Com.package" />  

My error

Reason: org.springframework.beans.factory.NoSuchBeanDefinitionException: Any specific Bean type [com.package.ServiceIamUsing] is defined: unsatisfied dependency of type [interface com.package.ServiceIamUsing] : Expecting at least 1 matching bean

In this way I have autowired on my applciation

  Public Class MyAppDao implements IMyAppDao {@Autowired @Qualifier ("serviceIamUsing"); Personal Services; Immigration Services; Imaging; // more code here}  

J, try the following: - forward-slash " / "- In your application reference XML file, try importing the application context from your external jar file if any -> import source =" ClassPath *: / Meta-INF / Spring / * .xml "

I know that it does / does not work.


Comments