whycxzp
2021-10-22 838d3695f3f27062e455668661c419cade4958fa
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");
    }
}