• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

서비스스캔시 오류가 발생합니다.

23.01.18 11:56 작성 23.01.18 12:00 수정 조회수 1k

0

KakaoTalk_Snapshot_20230118_120013.png KakaoTalk_20230118_115111804.pngKakaoTalk_20230118_115127157.pngKakaoTalk_Snapshot_20230118_115417.pngKakaoTalk_Snapshot_20230118_115435.png cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'.

서비스 제이유닛으로 테스트 하기위해서 servlet에 있는 scan을 root-context.xml으로 옮기는 과정중에서 일어났습니다.

오류 뜨는 x표시란에 마우스를 대면 위와 같은 오류가 납니다.

답변 2

·

답변을 작성해보세요.

0

igr113님의 프로필

igr113

질문자

2023.01.18

KakaoTalk_Snapshot_20230118_130451.png

말씀하신 동일한 코드 지웠고요 ;빼니까 저부분에 오류가 발생하네요... 스캔부분은 변함이 없고요

9번라인 오류는

Multiple annotations found at this line:

- schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/context/spring-context-4.3.xsd', because 1) could not find the document; 2) the document could

not be read; 3) the root element of the document is not <xsd:schema>.

- There are '2' errors in 'spring-context-4.3.xsd'.

12라인 오류

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'.

9번 라인 오류는 구글에 검색해보니까 ;을 지워서 생기는 오류라고 하더라고요.. 어떻게 해야할까요 ㅠㅠ

0

image
2곳에 동일한 코드가 있습니다. 확인해보시고 위의 ; 를 제거해야 됩니다.