springboot 配置关闭浏览器session立即失效 基于cookie 的session,在springboot配置中修改 server.servlet.session.cookie.max-age=-1s 将cookie的有效期设为0或-1