Hi,
We are developing an application that consist of Spring,
JSF and Spring REST. We started working on it and we have added some
test files. I am working with the REST API part. I added the configuration, ran the project and accessed the api but it throws a 404, requested resource is not available. Following are the locations and files
WEB-INF/web.xml
WEB-INF/springrestcontroller-servlet.xml
com.company.api.CommonController
The url I used to access the api is
localhost:8081/MilkyWaySpringJSF/api/
This should return the
String "Hello Welcome to API" but only 404 is thrown. No errors or exception is thrown in Log or console.
EDIT:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
When I remove request mapping from class and change the web.xml mapping to the following
the project works fine. But if I change back the controller and web.xml, 404 is thrown. I am
As far as I know, if the url
pattern in web.xml should be same as controller class request mapping, then api should work fine but this isn't working.