📜  spring security 注册后自动登录 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:32.064000             🧑  作者: Mango

代码示例1
public void authWithHttpServletRequest(HttpServletRequest request, String username, String password) {
        try {
            request.login(username, password);
        } catch (ServletException e) {
            LOGGER.error("Error while login ", e);
        }
    }