프로젝트를 시작하면서 application.xml 설정을 해주는데

 

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

 

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

 

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

 

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

 

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

 

xsi:schemaLocation="

 

http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd

 

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

 

http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd

 

http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd

 

http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd"

 

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

 

xsi:schemaLocation 에서 Downloading external resources is disabled. 오류가 발생했다

 

 

첫번째로 검색했던 블로그에서는  <beans xmlns:beans:   <beans xmlns: 로 고치면 된다고 했는데

난 이미 <beans xmlns: 로 작성했었다.

 

그래서 난 반대로 <beans xmlns: 뒤에 <beans xmlns:beans: 으로 수정해 줬더니 해당 오류는 사라졌지만

아래와 같은 새로운 오류가 발생했다.

 

cvc-elt.1.a: cannot find the declaration of element 'beans'.

 

처음에는 버전을 안적어줘서 그런가 해서 버전을 적어줘도 오류는 똑같았다

 

그래서 두번째로 수정했던 부분을 지웠다. 잘못 수정했다는 생각이 들어 다른 해결방안을 찾았다

 

다시 첫번째 오류에 집중하였는데 소스 다운에 문제 있다고 하니

 

Preferences -> Maven -> Download Artifact JavaDoc 체크를 해주었다.

 

체크해주니 정상 작동하였다.

 

 

아래 링크를 참고하였다

https://stackoverflow.com/questions/77252112/downloading-from-external-resources-is-disabled-in-hibernate-dtd

 

Downloading from external resources is disabled in hibernate dtd

While I am trying to do hibernate configuration I put hibernate dtd in hibernate.cfg.xml file and it is showing an error that downloading from external resources is disabled. Can you please help me...

stackoverflow.com

 

 

 

 

+ Recent posts