tomcat
service.xml
<Context docBase="/path/to/images" path="/images" />
resin
resin.conf
<host id="" root-directory=".">
<web-app id="/" root-directory="D:/resin-pro-3.1.10/webapps/ROOT/"/>
<web-app id="/upload" root-directory="D:\upload"/>
</host>
<web-app id="/" root-directory="D:/resin-pro-3.1.10/webapps/ROOT/"/>
<web-app id="/upload" root-directory="D:\upload"/>
</host>
http://*.com/questions/1812244/simplest-way-to-serve-static-data-from-outside-the-application-server-in-a-java