springboot之三大组件

servlet

filter

listener

注册三大组件

说明:

  • springboot默认是以jar包的方式启动嵌入式的Servlet容器来启动Springboot的web应用,没有web.xml文件。
  • ServletRegistrationBean
  • FilterRegistrationBean
  • ServletListenerRegistrationBean
发布了158 篇原创文章 · 获赞 26 · 访问量 9万+

猜你喜欢

转载自blog.csdn.net/qq_41650354/article/details/103939147
今日推荐