When you create a maven project in idea and use Vue to modify the content in HTML, you find that the HTML page is not modified successfully. F12 opens the background and displays an error: failed to load resource: the server responded with a status of 404 (not found). The browser does not find Vue JS file
reason:
(1) maven project to introduce vue.js file after the project needs to be packaged, double-click the package button.
(2) Since the vue.js file is stored in a static resource, check whether the project’s configuration file springMVC.xml opens access to the static resource.
After completing the above steps, the browser F12 background shows that vue.js was successfully fetched and the page content was successfully modified!
Read More:
- How to Fix Failed to load resource: the server responded with a status of 404()
- How to Solve Archetype generate Error
- Mavenzai install Error: There are test failures
- [Solved] Maven Error: parent.relativePath points at wrong local POM
- Error: Error building SqlSession [How to Solve]
- Swagger-ui.html Open Error: There was an unexpected error (type=Not Found, status=404)
- Refresh 404 after packaging Vue project, uncaught syntax error: unexpected token <
- IDEA reports an error. Error XXX reports an error. The class cannot be found
- Nginx: How to Use Error_Page
- [Solved] ERROR command failed: npm install –loglevel error –legacy-peer-deps
- Using Jenkins to compile APK Error [How to Solve]
- How to Solve Project Upgrade to flutter2.5.0 Error
- [Solved] thymeleaf.TemplateEngineException processing template “main“: An error happened during template pars
- How to Solve [error] malformed \uxxxx encoding Error
- Solve the data transfer between vue irrelevant components error: this.$store.commit is not a function
- Log4j2 reports ERROR StatusLogger Unrecognized format specifier
- There is no error when compiling and packaging the IDEA code, but the code displays an error
- Solve Maven project running error Failed to clean project: Failed to delete
- ApplicationContext.xml file header error Referenced file contains errors