whyczh
2021-04-07 9f83bdaebfd57892bc48857c286780a01efeb581
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.whyc.util;
 
import com.whyc.pojo.User;
 
import javax.servlet.http.HttpServletRequest;
 
/**
 * 通用工具列
 */
public class CommonUtil {
 
    /**获取当前Session中的属性user*/
    public static User getUser(HttpServletRequest request) {
        return (User) request.getSession().getAttribute("user");
    }
}