【发布时间】:2020-02-14 13:11:16
【问题描述】:
服务器:WindFly 15,Undertow 8
我按照文章http://www.mastertheboss.com/jboss-web/jbosswebserver/configuring-undertow-filters-on-wildfly 创建了一个自定义过滤器“MyFilter”。但是我没有找到使用 jboss.cli 将其添加到配置中的方法。
我试过 /subsystem=undertow/configuration=filter/filter=myFilter/:add(module=com.xxx.myfilter,class-name=com.xxx.MyFilter),得到以下错误:
ERROR [org.jboss.as.cli.CommandContext] Failed to get the list of the operationproperties: "WFLYCTL0030: No resource definition is registered for address [
("subsystem" => "undertow"),
("configuration" => "filter"),
("filter" => "myFilter")
那么我们是否只能通过手动编辑配置文件来添加过滤器?
【问题讨论】:
标签: jboss servlet-filters undertow