package org.springframework.web;

@javax.servlet.annotation.HandlesTypes({org.springframework.web.WebApplicationInitializer.class})
public class SpringServletContainerInitializer implements javax.servlet.ServletContainerInitializer {
    public SpringServletContainerInitializer() { /* compiled code */ }

    public void onStartup(@org.springframework.lang.Nullable java.util.Set<java.lang.Class<?>> webAppInitializerClasses, javax.servlet.ServletContext servletContext) throws javax.servlet.ServletException { /* compiled code */ }
} 

这段代码是springboot的启动代码。 

1.注解不仅可以用在方法上,也可以用在参数上。

2.在servlet3.0环境中,容器会查找实现了javax.servlet.ServletContainerInitializer接口的类,如代码中的SpringServletContainerInitializer,就会使用其配置servlet容器。而该类又会查找实现了WebApplicationInitializer的类,AbstractAnnotationConfigDispatcherServletInitializer就实现了该类。

3.问题,如何在springboot中自定义自己的拦截器?

最新文章

  1. Linux iptables 防火墙
  2. Linux杂乱小知识点
  3. Ixia测试仪的自动化
  4. Server Error in &#39;/&#39; Application
  5. Android性能优化方法(八)
  6. HTML5播放器FlowPlayer的极简风格效果
  7. .htaccess 语法以及应用
  8. http://blog.csdn.net/clementad/article/details/47403185
  9. jQuery dialog 简介
  10. PHP中使用curlL实现GET和POST请求的方法
  11. 配置nginx支持thinkphp框架
  12. osg配置
  13. [Angular 2] Pipes with Multiple Parameters
  14. Java对象和Excel转换工具XXL-EXCEL
  15. 宝塔面板设置腾迅COS自动备份网站
  16. 用js实现一个简单的mvvm
  17. os.rename 和os.replace
  18. 一步步教你上架iOS APP
  19. PHP直接将文件流转换为字符串
  20. CF 166E Tetrahedron

热门文章

  1. Codeforces899D Shovel Sale(思路)
  2. Spring quartz 单机、集群+websocket集群实现文本、图片、声音、文件下载及推送、接收及显示
  3. 完善mui的tap及longtap点击效果
  4. Linux 端口转发一则
  5. 每天一个linux命令(14):head命令
  6. 【转】关于免费SSL证书的那些事儿
  7. 【nginx&amp;php】后台权限认证方式
  8. MATLAB 程序处理结果出现 NAN 问题
  9. WPF宝典Url
  10. Android开发导出apk报错:Unable to build: the file dx.jar was not loaded from the SDK folder