Skip to content

스프링 MVC config - by 콩하나 #6

Discussion options

You must be logged in to vote

(이레가 남기신 질문과 동일한 질문인 것 같아요 😂 #6 (comment))
@EnableWebMvc 를 붙이면

  1. 설정 정보를 커스텀 할 수 있다
  2. 그리고 이 때, 스프링에서 기본적으로 제공해주는 configuration이 무시된다

라는 특징을 가지는 것 같아요!

제가 이해한 바로는 @Configuration 을 사용하는 것만으로도 1번 특징인 "설정 정보를 커스텀 할 수 있다"를 만족하는 것 같은데,
Spring이 기본적으로 제공해주는 Configuration을 무시하면서 @EnableWebMvc 를 사용해야하는 상황이 무엇이 있을지 궁금해요! (사용해야 하는 이유가 궁금합니다 ㅎㅎ)

사실 저로서는 스프링의 기본 configuration이 빠지게 된다면 문제가 생길 수 있지 않을까? 라는 생각이 드는데요, 그럼에도 @EnableWebMvc 라는 어노테이션이 존재하는 이유가 있을 것 같아서요~!

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@kong-hana01
Comment options

Comment options

You must be logged in to vote
1 reply
@kong-hana01
Comment options

Comment options

You must be logged in to vote
1 reply
@kong-hana01
Comment options

Comment options

You must be logged in to vote
1 reply
@kong-hana01
Comment options

Answer selected by kong-hana01
Comment options

You must be logged in to vote
3 replies
@kong-hana01
Comment options

@kong-hana01
Comment options

@kong-hana01
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants