> For the complete documentation index, see [llms.txt](https://dodeon.gitbook.io/study/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dodeon.gitbook.io/study/keesunbaik-concepts-of-spring-boot/05-spring-web-mvc.md).

# 스프링 웹 MVC

* 스프링 부트 MVC
  * 자동 설정으로 여러 기능을 제공한다.

```java
@Configuration
public class WebConfig implements WebMvcConfigurer {
}
```

* 스프링 MVC 확장
  * @Configuration + WebMvcConfigurer
* 보통은 인터페이스가 제공하는 메서드를 수정하게 된다.

```java
@Configuration
@EnableWebMvc
public class WebConfig implements WebMvcConfigurer {
}
```

* 스프링 MVC 재정의
  * @Configuration + @EnableWebMvc
* 기본 설정이 다 날아간다.
* 기본 설정으로도 충분히 사용이 가능하기 때문에 사용할 일이 거의 없다.

[스프링 웹 MVC](https://docs.spring.io/spring/docs/5.0.7.RELEASE/spring-framework-reference/web.html#spring-web)
