【发布时间】:2013-03-19 17:10:03
【问题描述】:
我有以下 Jetty 配置:
<webAppConfig>
<defaultsDescriptor>${project.basedir}/configuration/webdefaults.xml</defaultsDescriptor>
<contextPath>/app</contextPath>
<baseResource implementation="org.eclipse.jetty.util.resource.ResourceCollection">
<resourcesAsCSV>${project.basedir}/src/main/webapp,/external/dir,/another/dir</resourcesAsCSV>
</baseResource>
</webAppConfig>
现在,在我的 src/main/webapp 和 /external/dir 中,我都有一个名为 static 的目录,并且可以通过 URL /app/static 访问这两个目录中的资源。然而,在 /another/dir 中,我有一个名为 special-static 的目录,由于某种原因,其中的资源不可访问(或至少不使用 URL /app/special-static)。
知道我做错了什么吗?
【问题讨论】:
标签: jetty embedded-jetty maven-jetty-plugin