Hello guys, this problem has troubled me for a day, I developed a web project in eclipse, and then I want to add a picture to it, which can display the picture in eclipse, but copy the URL address to the browser to open the picture but not Yes, and then I checked Baidu, which said it was a path problem. I added a virtual path in tomcat's server.xml, and the opened picture was still not displayed. Excuse me, guys, help me to see what is going on? I would like to ask how to solve it. Thank you. The
first picture is the virtual path I added. The
second is my original code. The absolute path with the picture is stored. The
third is the code after I changed to a relative path. The
fourth is to change The picture displayed in the browser after completing the code
The JSP configured in the Eclipse environment cannot be displayed when the picture is opened in the browser
Guess you like
Origin www.cnblogs.com/fdsgfdg899/p/12716880.html
Recommended
Ranking