Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.2k views
in Technique[技术] by (71.8m points)

关于spring部署后的容器的问题?

image.png
最近在学习spring的内容, 上面的图是关于项目部署后服务器的容器状况的内容.上图的意思是spring项目部署后, 存在两个容器? 一个是servlet容器, 一个是spring容器?
那请问其中的过滤器是也有两种吗?一种是servlet filter, 一种是Spring Security filters?
很疑惑, 希望有人解答, 谢谢.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

web项目依赖于web容器,和你用不用spring无关,spring容器就不单独说了
对于过滤器来说,filter是web容器的事,也和spring无关,


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...