private void needAuthenticate(final HttpServletRequest request, final HttpServletResponse response) {
        response.setStatus(401);
        response.setHeader("Cache-Control", "no-store");
        response.setDateHeader("Expires", 0);
        response.setHeader("WWW-authenticate", AUTH_PREFIX + "Realm=\"lts admin need auth\"");
    }
Created by ztajy on 2015-11-11.

@author ztajy
@author Robert HG (254963746@qq.com)
lts-admin/src/main/java/com/github/ltsopensource/admin/web/filter/LoginAuthFilter.java