강의

멘토링

커뮤니티

Inflearn Community Q&A

skim87004774's profile image
skim87004774

asked

Java ORM Standard JPA Programming - Basics

Practical Example 1 - Requirement Analysis and Basic Mapping

persistence.xml, pom.xml 오류 발생 및 entity 적용 불가 관련 질문드립니다

Resolved

Written on

·

880

1

앞선 강의에서 사용했던 persistence.xml, pom.xml을 그대로 복사해서 붙였는데 에러가 납니다.

1. persistence.xml 의 경우 xmlns="http://xmlns.jcp.org/xml/ns/persistence" URI is not registeded

2. pom.xml 의 경우
dependency 부분에서 invalid content was found~ 라고 에러 메시지가 뜹니다

3. Member 클래스 Entity 어노테이션이 적용되지 않습니다

* jdk, java 언어는 모두 11임을 확인했습니다

persistence.xml

persistence.png

pom.xml

pom.png

Entity 어노테이션 적용 불가 관련

Entity.png

javaJPA

Answer 2

2

안녕하세요. sy k님, 공식 서포터즈 OMG입니다.
pom.xml을 보시면

 

image<dependencies>

.......<dependency>

.......</dependency>

</dependencies>로 묶여 있지 않습니다.

persistence.xml은 기존 강의 수강하면서 생성한 persistence.xml을 복사하여 사용해주세요.

Pom.xml을 수정할 경우, 우측 상단에 활성화 되는 아이콘을 클릭하여 리로드 한 후 확인해주세요

 


감사합니다.

0

sy k님의 프로필 이미지
sy k
Questioner

감사합니다!

skim87004774's profile image
skim87004774

asked

Ask a question