# 스프링 웹 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dodeon.gitbook.io/study/keesunbaik-concepts-of-spring-boot/05-spring-web-mvc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
