Dear all,
I have an Controller Class with the following annotations
I have taken the contents of @RequestMapping("projects/v1") and @GetMapping("/resources") to construct the url and entered it in Postman
http://localhost:8084/resource-service/projects/v1/resources
In response I have gotten is this
{
"timestamp": 1607569944112,
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/resource-service/projects/v1/resources"
}
These are the entries in the Spring Boot Terminal in INTELLIj
IDE after firing the request
2020-12-10 11:07:13.708 INFO 5784 --- [nio-8084-exec-1] o.a.c.c.C.[
Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2020-12-10 11:07:13.709 INFO 5784 --- [nio-8084-exec-1] o.s.web.servlet.DispatcherServlet : Initializing
Servlet 'dispatcherServlet'
2020-12-10 11:07:13.734 INFO 5784 --- [nio-8084-exec-1] o.s.web.servlet.DispatcherServlet : Completed initialization in 25 ms
2020-12-10 11:09:04.872 WARN 5784 --- [nio-8084-exec-3] o.s.web.servlet.PageNotFound : No mapping for GET /resource-service/resources
2020-12-10 11:12:24.108 WARN 5784 --- [io-8084-exec-10] o.s.web.servlet.PageNotFound : No mapping for GET /resource-service/projects/v1/resources
Can someone tell me what went wrong? Is there some configurations I need to do in application.yml or something?