Tag Archives: Browser Console Error

Browser Console Error: Failed to load resource: the server responded with a status of 404()

Today, when learning about the spring MVC framework, we need JSON when making a small demo, so we introduce jQuery files to transmit JSON in the form of Ajax, but the background cannot receive data. After viewing the browser console, the following information is displayed:

This is strange. I clearly introduced jQuery, and the file path is not wrong. Why do you say I didn’t introduce it?After some inspection, it is found that the access mapping of static resources should be configured in the configuration file of spring MVC so that it will not be intercepted by the front-end controller

After adding the mapping, run it again. The background successfully receives the data and returns to the foreground!