When I visit this javaWeb project in my browser, I always remind me of the wrong path. I can't see what's wrong for a long time. Please give me some advice.

Mar.09,2021

take a look at the configuration files of spring and springmvc to see whether the packet scanning path is configured correctly. Remove controller comments from spring, and springmvc scans only controller comments.


take a look at how the view parser matches


post the paths of springMvc.xml and login.jsp, and you should be able to accurately determine the problem.
three possibilities:
1. The path was written wrong in the code
2.controller did not scan
3. Finally, there is the configuration of the view parser (InternalResourceViewResolver is more commonly used). Check whether the prefix and suffix are the complete path of jsp after stitching with the path written by yourself


@ conch
@ Seasons
@ Dawn

springmvc1

springmvc2

InternalResourceViewResolver...controller

@Seasons

@conch

@Seasons
404.

@ season [Jade _ 5ad1946eec00d
I redeployed the project to tomcat's webapps directory, but still reported 404 when I visited it

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4760f-44c20.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4760f-44c20.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?