---
title: "Tomcat5.5：使用link目录"
author: "zybing"
date: "2010-08-19T10:34:10Z"
tags: ["Apache", "Tomcat", "XML"]
categories: ["企业架构"]
slug: "tomcat5-5-link"
draft: false
lastmod: "2010-08-19T10:41:06Z"
id: 740841
url: "https://zybing.iteye.com/blog/740841"
---

Tomcat5.5中，缺省是不能使用link目录的。

 

可以通过修改配置，使得Tomcat支持Link的目录结构

 

修改方式：

在server.xml中的Context节点做如下调整：

 

```
<Context allowLinking
="true" ....原有的参数>
       <Resources className="org.apache.naming.resources.FileDirContext" allowLinking="true" /> 
</Context>
```