1
zhang
1 天以前 d35e2accdca4b3762359231f4fe479c9538b6f6f
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")));
    }
 
 
}