Spring Boot的Web开发
一、Spring Boot的Web支持
Spring Boot提供了spring-boot-starter-web为Web开发予以支持,spring-boot-starter-web为我们提供了嵌入的Tomcat以及Spring MVC的依赖。与Web相关的自动配置存储在spring-boot-autoconfigure.jar的org.springframework.boot.web下,如下图所示:
1、ServerPropertiesAutoConfiguration和ServerProperties自动配置内嵌Servlet容器;
2、HttpEncodingAutoConfiguration和HttpEncodingProperties自动配置http的编码;
3、WebMvcAutoConfiguration和WebMvcProperties自动配置Spring MVC。
二、Thymeleat模板引擎
<