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