有没有办法获得httprequest而不将其发送到参数?

时间:2016-11-26 11:08:07

标签: httprequest

需要在不传递参数HttpServletRequest请求的情况下使用,因为它是一个要被覆盖的方法。

  @Override
            @RequestMapping(method = RequestMethod.GET)
            @PreValidateCheckoutStep(checkoutStep = MULTI)
            public String enterStep(final Model model, final RedirectAttributes redirectAttributes) throws CMSItemNotFoundException, // NOSONAR
                    CommerceCartModificationException
            {

                final Cookie[] cookies = request.getCookies();
                final String guid = (String) request.getSession().getAttribute(CustomstorefrontaddonConstants.SECURE_GUID_SESSION_KEY);
    }

0 个答案:

没有答案