인프런 커뮤니티 질문&답변
bean에서 오류가 납니다
작성
·
4.9K
0
*************************** APPLICATION FAILED TO START *************************** Description: The bean 'memberService', defined in class path resource [hello/hellospring/SpringConfig.class], could not be registered. A bean with that name has already been defined in file [C:\intelliJ\hello-spring\hello-spring\out\production\classes\hello\hellospring\service\MemberService.class] and overriding is disabled. Action: Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true Process finished with exit code 1
이런 오류가 뜨는데요! 뭔가 중복해서 돌아가고 있는 것 같습니다 ㅠㅠㅠ 어떤 것일까요??
퀴즈
순수 JDBC를 사용할 때, 데이터베이스 리소스(연결, Statement 등) 관리가 어려웠던 주된 이유는 무엇일까요?
SQL 쿼리를 직접 작성해야 해서
각 리소스를 사용 후 반드시 직접 닫아줘야 해서
테스트 간 데이터 독립성을 보장하기 어려워서
의존성 주입 설정이 복잡해서





