Static resources cannot load layui.js and layui. css
Solution:
Add the following contents to the web.xml configuration file
<servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>*.js</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>default</servlet-name> <url-pattern>*.css</url-pattern> </servlet-mapping>
Read More:
- [Solved] layui table org.thymeleaf.exceptions.TemplateInputException: An error happened during template…
- Vue JS import font.css error [How to Solve]
- Solution to build error in Vue project (error in static/JS)/vendor.xxxxx.js from UglifyJs)
- [Solution] VUE.js Load a local image with parameters in the script
- [Solved] Failed to load plugin ‘vue‘ declared in ‘.eslintrc.js‘: createRequire is not a function
- [Solved] Nuxt Import qrcodejs2.js / QRCode.js Error: document is not defined
- PDF.js load PDF Error: Message: failed to fetch
- Solution to some map files in JS folder after Vue packaging (remove the map. JS file)
- [Solved] Vue Import swiper.css Error: Module not found…
- CSS to achieve dynamic display of picture text by mouse touch
- CSS text more than 2 lines hidden and show ellipsis
- [Solved] webpack Package Error: ERROR in multi ./src/main.js ./dist/bundle.js Module not found: Error: Can‘t resolv
- [Chrome]: DevTools failed to load source map… (How to Solve)
- [Solved] Node.js: Error: connect ECONNREFUSED ::1:3306
- [Solved] Syntax Error: Error: PostCSS received undefined instead of CSS string
- After Vue is packaged to the server, the static resource path reports an error
- Syntax Error: Error: PostCSS received undefined instead of CSS string
- How to Use DOM to operate CSS
- JS uses onerror to automatically catch exceptions
- Vue Import element-plus Error: Failed to resolve import “element-pluslibtheme-chalkindex.css“ from “src