麶槑 2020-12-27 01:30 采纳率: 20%
浏览 37

spring Controller中保存的session 如何在services层中获取到呢

spring Controller中保存的session 如何在services层中获取到呢  目前测试要么保存在controller中 只能在controller中获取到  要么保存在services中 只能在services中获取到 

  • 写回答

2条回答 默认 最新

  • Mr.Qubb 2020-12-27 09:22
    关注
    HttpServletRequest request = ((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest();
    评论

报告相同问题?