设置session超时时间

This commit is contained in:
F嘉阳
2018-02-27 16:12:36 +08:00
parent 81fb9cdff6
commit 97e60b662e
5 changed files with 15 additions and 7 deletions

View File

@@ -1,13 +1,19 @@
package com.fjy.spring.controller;
import com.fjy.spring.domain.TbUser;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.SessionAttributes;
import org.springframework.web.bind.support.SessionStatus;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import static com.fjy.spring.constant.GlobalConstant.USER_SESSION_KEY;
@Controller
@SessionAttributes(USER_SESSION_KEY)
public class NavController {
@Resource
HttpServletRequest request;