springcloud netflix-zuul代码执行流程
2020-11-27 17:11:03 14 举报
springcloud zuul filter加载流程、zuulfilter调用流程
作者其他创作
大纲/内容
校验
3、postRouting
ZuulFilter加载流程
FilterRegistry单例负责操作ZuulFilter
1、FilterFileManager初始化init
调用run
FilterProcessor类单例
载入
判断是否调用shouldFilter
链式调用processZuulFilter
1、preRouting
postRoute
DynamicCodeCompiler
源码变化时编译
Filter
2.2如果新增,动态编译class
routing
2、FilterLoader,putFilter
doFilter
preRoute
2.3filterRegistry中添加ZuulFilter
开始
runFilters
1.1调用startPoller,启动线程
ZuulFilter调用流程
1.2执行manageFiles->processGroovyFiles
结束
2、routing
调用ZuulFilter的runFilters
FilterLoaderf负责加载ZuulFilter
ZuulFilter
2.1如果变过通过filterRegistry,remove
GroovyCompiler
ZuulRunner类
0 条评论
下一页