如果tomcat项目中存在链接目录时,需要修改tomcat的配置文件context.xml,在文件中增加<Resources allowLinking="true" cacheMaxSize="100000"/>,否则,链接目录不能被访问。