08-02-2023, 03:45 PM
it means you are trying to access the page which is not there.
suppose your jsp file is at /webapp/home.jsp now if you use @RequestMapping("/home") on your code and return "home.jsp"; then you will get this error if you try to access using localhost:port/ but if you try localhost:port/home there will be no error
you can fix this by checking your @RequestMapping("/") here put /mapping_path of the page you are trying to access.
and you can also try adding a dependency of tomcat jaspher from maven dependency
suppose your jsp file is at /webapp/home.jsp now if you use @RequestMapping("/home") on your code and return "home.jsp"; then you will get this error if you try to access using localhost:port/ but if you try localhost:port/home there will be no error
you can fix this by checking your @RequestMapping("/") here put /mapping_path of the page you are trying to access.
and you can also try adding a dependency of tomcat jaspher from maven dependency