Idea created a springmvc project. Remember the error: 404
there was no error in accessing the servlet and the configuration file. Later, configure the support for the @ controller tag in springmvc.xml
<mvc:annotation-driven />
Successfully solved!