我需要为<servlet:inbound-endpoint>
路径配置/test/*
传输的通配符路径,以便将/test/hello
和/test/xyz
请求发送到此servlet。
这是我的配置:
1- web.xml
<servlet-mapping>
<url-pattern>/test/*</url-pattern>
</servlet-mapping>
2- servlet配置:
<flow name="test" processingStrategy="synchronous">
<servlet:inbound-endpoint path="/test/*" />
<logger level="INFO" message="received in the servlet" />
</flow>
但是我收到了这个错误:
HTTP Status 404 - Failed to process request, see root exception cause for details: Endpoint "hello" not found