【发布时间】:2025-12-02 16:20:03
【问题描述】:
我可以在 JBoss AS 7.2 中创建一个静态目录吗,比如 WildFly?
我知道 WildFly 服务器可以配置为通过 undertow 子系统提供静态内容。例如:
<server name="default-server">
<http-listener name="default" socket-binding="http"/>
<host name="default-host" alias="localhost">
<location name="/mycontent" handler="content"/>
</host>
</server>
<handlers>
<file name="content" path="${jboss.home.dir}/content" directory-listing="true"/>
</handlers>
根据我的要求,用户将静态内容上传到静态目录中。
【问题讨论】: