Skip to content

타협) Spring Bean Component 적용하기 #7

@Jang990

Description

@Jang990

타협) Spring Bean Component 적용하기

내용

Spring IoC 컨테이너와 DI를 직접 구현하는 것은 길고 힘든 작업이 될 것 같다.
타협해서 Spring IoC 컨테이너는 사용하겠다.

gradle에 다음 의존성을 추가하고 main까지 만들어 둔다.

	/* Spring IoC 컨테이너 + Mockito 테스트를 위한 의존성 추가 */
	// Spring IoC 컨테이너 - Bean, Component, Service 등등
	implementation 'org.springframework:spring-context:6.1.5'
	// Spring Test (ApplicationContext 로딩, @ExtendWith 등)
	testImplementation 'org.springframework:spring-test:6.1.5'
	// Mockito
	testImplementation 'org.mockito:mockito-core:5.11.0'
	/* ****************************************************** */

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions