SpringBoot-Web开发源码

目录

一、静态资源配置原理

  • SpringBoot启动默认加载 xxxAutoConfiguration 类
  • SpringMVC功能的自动配置类 WebMvcAutoConfiguration
@Configuration(proxyBeanMethods = false)
@ConditionalOnWebApplication(type = Type.SERVLET)
@ConditionalOnClass({ Servlet.class, DispatcherServlet.class, WebMvcConfigurer.class })
@ConditionalOnMissingBean(WebMvcConfigurationSupport.class)
@AutoConfigureOrder(Ordered.HIGHEST_PRECEDENCE + 10)
@AutoConfigureAfter({ DispatcherServletAutoConfiguration.class, TaskExecutionAutoConfiguration.class,
		ValidationAutoConfiguration.class })
public class WebMvcAutoConfiguration {
上一篇:「Web前端开发」CSS入门篇(下)


下一篇:jmeter提取json数组