通过tomcat引用外部文件,需要对server.xml添加配置 <Context docBase="/home/ewash/files" path="/files" reloadable="false"/>