|
|
|
@ -23,7 +23,7 @@ public class Demo extends AbstractRequestPreHandleProvider {
|
|
|
|
|
@Override |
|
|
|
|
@Focus(id = "com.tptj.demo.hg.request.pre.handle.v10",text = "请求预处理demo") |
|
|
|
|
public boolean preHandle(HttpServletRequest req, HttpServletResponse res) { |
|
|
|
|
req.setAttribute("sys", Config.getInstance() ); |
|
|
|
|
req.setAttribute("sys", Config.getInstance().getSysKey()); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|