inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

스프링 프레임워크는 내 손에 [스프2탄]

07_스프2탄_JUnit리스트보기 Service 테스트

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

1766

igr113

작성한 질문수 3

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표시란에 마우스를 대면 위와 같은 오류가 납니다.

jquery spring MVC JPA Spring Security

답변 2

0

igr113

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

박매일

<beans xmlns="http://www.springframework.org/schema/beans"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:mybatis-spring="http://mybatis.org/schema/mybatis-spring"

xmlns:context="http://www.springframework.org/schema/context"

xsi:schemaLocation="http://mybatis.org/schema/mybatis-spring http://mybatis.org/schema/mybatis-spring-1.2.xsd

http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd

http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.3.xsd">

에러난 부분을 위의 소스코드로 바꾸시고 maven update를 다시해보시고 봐보시기 바랍니다

0

박매일

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

junit Test에서 오류는 나지 않지만 결과가 다르게 나오네요

0

200

2

API키 관리 궁금해요.

0

259

2

SpringMvc 프로젝트가 없는 상태로 작업 중인데 처음부터 막힙니다..

0

149

2

namespace

1

193

1

안녕하세요 강의내용을 복습하다가 질문이 생겼습니다

0

268

1

안녕하세요. spring boot 에서 하는중인데 질문 드립니다.!

0

266

1

spring Legacy Project에서 MVC 프로젝트가 없습니다. 어떻게 해야하나요?

0

1540

1

idx, boardGroup 번호에 대해

0

182

1

깃허브 주소를 못 찾겠어요

0

271

1

스프링 시큐리티 질문

0

1012

1

강사님 감사 인사 드리러 왔습니다.

1

391

1

com.mysql

0

270

2

pom.xml의 dependencies 관련 질문

0

269

2

혹시 마프는 언제 오픈 되나요?

0

376

2

스프링부트

0

298

1

섹션 01 8강 질문입니다

0

237

1

스프2탄 PPT파일은 없나요?

0

527

1

안녕하세요 답변 에러가 납니다.,

0

383

1

강사님 질문입니다!

0

427

2

다음 강의 또 언제 나오나요

0

591

2

다음강의 예정 사라지셨나요?

0

728

1

선생님 api와 인터페이스가 잘 이해가 가지 않는데요..

1

416

2

선생님 강의 문의 드릴 게 있는데요~!

0

331

1

수업자료 다운로드 위치가 안보입니다 ㅠㅠ

0

285

1