Skip to content

HttpServerFilter过滤器怎么使用@Resource注入对象 #1646

@Fang57

Description

@Fang57

public class CustomizedFilter implements HttpServerFilter {
@resource
private EncryptkeyInfo enKeyInfo;
@resource
private AuthUtil authUtil;
@OverRide
public Response afterReceiveRequest(Invocation invocation, HttpServletRequestEx requestEx) {
return null;
}
@OverRide
public void beforeSendResponse(Invocation invocation, HttpServletResponseEx responseEx) {
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions