Map external directory to web.xml

前端 未结 3 458
盖世英雄少女心
盖世英雄少女心 2021-01-01 07:52

Is there an easy way to map a directory in the web.xml or other deployment descriptor (jetty.xml, etc) files?

For example, if I have a directory /opt/files/ is there

3条回答
  •  执笔经年
    2021-01-01 08:06

    I don't know that you can do that as a URL mapping, however files and folders in the same directory that your web.xml file is in will be accessible in the way you describe, although you can't control the mapping under your webapp.

    Does that suit your needs?

提交回复
热议问题