게시글
질문&답변
2021.01.21
## 테이블이 생성되지 않아서 질문드리려했는데 참고해주세용
와우! 넘 감사합니다! JpashopApplication파일이 다른 엔티티들과 같은 위치에 있지 않아서 발생한 문제였네요ㅎㅎ
- 1
- 2
- 268
질문&답변
2021.01.18
테스트 도중 에러 발생
implementation 'junit:junit:4.12' 이걸로 build.gradle에 추가해두었는데, 주금석님 방법으로 해결되었습니다ㅠㅠㅠ
- 4
- 15
- 26K
질문&답변
2020.12.01
javax.persistence.PersistenceException: No Persistence provider for EntityManager named hello
혹시 해결하셨나요? (사진) persistence.xml 파일 내용 첨부합니다ㅎㅎ xml version="1.0" encoding="UTF-8"?>persistence version="2.2" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd"> persistence-unit name="hello"> properties> property name="javax.persistence.jdbc.driver" value="org.h2.Driver"/> property name="javax.persistence.jdbc.user" value="sa"/> property name="javax.persistence.jdbc.password" value=""/> property name="javax.persistence.jdbc.url" value="jdbc:h2:tcp://localhost/~/test"/> property name="hibernate.dialect" value="org.hibernate.dialect.H2Dialect"/> property name="hibernate.show_sql" value="true"/> property name="hibernate.format_sql" value="true"/> property name="hibernate.use_sql_comments" value="true"/> --> properties> persistence-unit>persistence>
- 0
- 2
- 879