AOP ?
现在是写了一个方法,所有接口都调用一遍。
AOP ?
现在是写了一个方法,所有接口都调用一遍。
|
xinyewdzOct 23, 2018
1
拦截器,过滤器都可以。
|
|
elgaeOct 23, 2018
2
filter
|
|
chengran630Oct 23, 2018
3
接口通过 ajax 或者 wss 传送,将他们封装一个函数,在里面判断...
|
|
sutraOct 23, 2018
4
不知道我题目有没有理解对,用 spring-security (当然其也是通过 filter )?
|
|
gaiusOct 23, 2018
5
HandlerInterceptorAdapter
|
|
ben1024Oct 23, 2018
6
JWT,Header 验证
|
|
wu67Oct 23, 2018
7
带 token, 没带 token 的请求全部报错就行了
|
|
tributeOct 23, 2018 via Android
8
decorate ?
|
|
asLw0P981N0M0TCCOct 23, 2018
9
继承?
|
|
whypoolOct 23, 2018
10
中间件
|
|
jason19659Oct 23, 2018
11
filter interceptor
|
|
KingEngineOct 23, 2018
12
spring-security 嘛
|
|
DesmondLiu90Oct 23, 2018
13
authFilter 啊,里面写验证 token 的逻辑
|
|
licoycnOct 23, 2018
14
过滤器
|
|
licoycnOct 23, 2018
15
或者使用 Shiro 或 SpringSecurity 这样的安全框架
|
|
yuanfnadiOct 23, 2018 via iPhone
16
拦截器。
|
|
auinOct 23, 2018
17
如果是普通 web servlet/jsp 项目,用:filter
如果是 springMVC 项目,用:interceptor 如果是 springMVC 大项目,用:SpringSecurity 另不推荐使用 Shiro |
|
xuanbgOct 23, 2018
18
非微服务项目:过滤器实现
微服务项目:网关实现 |
|
leehoOct 23, 2018
19
axios 拦截器
|
|
lllllliuOct 23, 2018
20
AOP 可以。
面向对象继承一个基础类,然后构造方法自动验证也可以。 路由中间件也可以。 |
|
akiraOct 23, 2018
21
做一个前置网关处理更合理吧
|
|
VariazioniOct 23, 2018
22
还不如用 shiro 之类的安全框架。。配置更方便。。
|
|
teg1cOct 23, 2018
23
中间件
|
|
wobuhuicodeOct 23, 2018
24
JWT 啊
|
|
limuyan44Oct 23, 2018 via Android
26
filter。。几分钟写完,没什么复杂要求的话随便写写。。登录完 session 丢个 token
|
|
cnitOct 23, 2018
28
|
|
cnitOct 23, 2018
29
|
|
JokerZXOct 23, 2018
30
同 jwt header 验证
|
|
loveCodingOct 23, 2018
31
@tom #27 shiro 也是 filter, 轻量级的自己写其实也不要多少时间
|
|
DoodlisterOct 24, 2018 via Android
32
@liuxey shiro 咋啦
|
|
auinOct 24, 2018
33
|