部署 Spring 项目时,我总是收到以下警告:
WARN [org.jboss.as.ee] (MSC service thread 1-4) JBAS011006: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.springframework.web.context.request.async.StandardServletAsyncWebRequest
我在这里读到这是一个常见的警告,处理它的方法是过滤它(它仍然存在,但不会显示)。我尝试了一段时间,但我似乎无法正确运行。这是我在standalone-full.xml中所做的:
<root-logger>
<level name="INFO"/>
<filter>
<not>
<match pattern="JBAS011006" />
</not>
</filter>
我想我尝试了过滤器与允许、拒绝、任何等的所有可能组合。有帮助吗?