Spring Boot的Web开发支持

一 点睛

Spring Boot提供了Spring-boot-starter-web为Web开发提供了支持,Spring-boot-starter-web为我们提供了嵌入Tomcat以及Spring MVC的依赖。而Web相关的自动化配置存储在下面路径下:

D:\.m2\repos\org\springframework\boot\spring-boot-autoconfigure\1.3.7.RELEASE\spring-boot-autoconfigure-1.3.7.RELEASE-sources\org\springframework\boot\autoconfigure\web

Spring Boot的Web开发支持

二 文件说明

  • ServerPropertiesAutoConfiguration和ServerProperties:自动配置内嵌Servlet。

  • HttpEncodingAutoConfiguration和HttpEncodingProperties:自动配置http编码。

  • MultipartAutoConfiguration和MultipartProperties:自动配置上传文件属性。

  • JacksonHttpMessageConvertersConfiguration:用来配置MappingJackson2HttpMessageConverter和MappingJackson2XmlHttpMessageConverter

  • WebMvcAutoConfiguration和WebMvcProperties:用来配置Spring MVC