Моя проблема заключается в том, что после миграции. Ожидается. < /p>
Код: Выделить всё
@WebFilter({"/xxx"})
public class MyFilter implements Filter {
@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
assert "http".equals(request.getScheme()); // it passes
assert !request.isSecure(); // it fails
// create the session here, it will set the JSESSIONID cookie
request.getSession(true);
chain.doFilter(request, response);
}
}
Подробнее здесь: https://stackoverflow.com/questions/795 ... -getscheme