注入 HttpServletRequest
2022-09-02 23:55:34
我正在使用ejb 3并尝试@Inject HttpServletRequest,但在部署时我发生了异常。
法典:
@Inject private HttpServletRequest httpRequest;
例外:
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [HttpServletRequest] with qualifiers [@Default] at injection point [[field] @Inject private com.kmware.ttk.highway.beans.session.UserSessionBean.httpRequest]
我能用它做什么?