1
zhang
4 天以前 1b6c512c4b251e7131a9b78e6f4ecb3a7d0a31a3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.zy.common.web;
 
import com.core.controller.AbstractBaseController;
import org.springframework.beans.factory.annotation.Autowired;
 
import javax.servlet.http.HttpServletRequest;
 
/**
 * Created by vincent on 2019-09-09
 */
public class BaseController extends AbstractBaseController {
 
    @Autowired
    protected HttpServletRequest request;
 
    protected Long getUserId() {
        return Long.parseLong(String.valueOf(request.getAttribute("userId")));
    }
 
 
}