First upload the image to the server, and then want to display the image on the page through the img tag, but it just cannot be displayed. It is displayed in various paths. Only the absolute path is displayed, but it cannot be displayed.
Visit the url of the image individually to see if it can be displayed.
Check the path, the path is wrong
I checked many times and found a problem. It can be displayed when I did it before. It is because the relative configuration is configured in tomcat's server.xml file. Path:
Check the path. The path is wrong
?
Visit the URL of the image individually to see if it can be displayed.
?
Visit the URL of the image individually to see if it can be displayed.
Can you see the image
?
Visit the URL of the image individually to see if it can be displayed.
Problem solved: There is no access permission for the upload folder, just give it permission.