In my project I have a controller class. It is marked with @Controller annotation.
The ServiceMapper class looks like this:
Dispatcher-servlet looks like this:
Problem: When <context:component-scan> is present in the dispatcher-servlet - Spring seems to be scanning the classes inside the third party jar as well. Third party jar classes have no annotations at all. It throws an error saying it <b>cant create the beans</b> in the third party.
When I remove the <context:component-scan> totally, an error similar to the one below is thrown:
No mapping found for HTTP request with URI [/MYWS/cc] in DispatcherServlet with name 'mvc-dispatcher'
Does anyone know a possible solution to this? I need to be able to use the third party jar's classes and at the same time use @controller to access the web services.