idea软件中webqapp下的images里面的图片访问不了 httplocalhost8080test2_warimagesuerjpg地址正确找不img src=$pageContextrequestcontextPathimagespayjpg alt=GET httplocalhost8080test2_warimagespayjpg 404
Not enough information is provided to give a definitive answer, but here are some potential solutions:
-
Check the file path: Double-check that the image file is actually located in the "images" folder under the "webqapp" directory. Make sure the file name and extension match what is specified in the HTML code.
-
Check the server configuration: Ensure that the server is properly configured to serve static files (such as images) from the "images" directory. This may involve modifying the server's configuration file or adding a specific handler for image files.
-
Check for typos: Make sure there are no typos or syntax errors in the HTML code, especially in the "img src" attribute. Check for missing or extra slashes, missing quotation marks, etc.
-
Try a different image file: If none of the above solutions work, try using a different image file (preferably one that is known to work) to see if the problem is specific to the original image file
原文地址: https://www.cveoy.top/t/topic/g8d7 著作权归作者所有。请勿转载和采集!