Modify server.xml in the tomcat directory
Corresponding directory (you can find it through commands, I found it directly through the pagoda)
Add the following code in the corresponding position
<Context docBase ="/home/lzh/images" path ="/images" debug ="0" reloadable ="true"/>
The directory where pictures are stored under the linux server.
View pictures through URL