@Component, @Service, @Controller, @Repository의 차이 #120
Replies: 2 comments
-
Spring 프레임워크에서 사용되는 @component, @service, @controller, @repository 어노테이션은 각기 다른 역할을 수행하는 클래스들을 식별하고 관리하기 위해 사용된다
--> @component에 각기 의미와 역할을 부여하는 어노테이션으로 @service, @controller, @repository가 있습니다. Spring에서는 @component, @service, @controller, @repository 모두 @SpringBootApplication |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Component Scan
WebMvcAutoConfiguration -> RequestMappingHandlerMapping -> ... -> isHandler에서
@Controller
확인Beta Was this translation helpful? Give feedback.
All reactions