Posts
Q&A
No Persistence Provider for EntityManager ์๋ฌ
[Self ๋ต๋ณ]์ ์ ๋ง.. ์ด์ ๋ถํฐ ํ๋ฃจ๊ฐ ๊ฑธ๋ ค์ Java ๋ฒ์ ๋ถํฐ Maven์์ Gradle๋ก ์ด๊ฒ์ ๊ฒ ๋ฐ๊ฟ๋ณด๋ฉด์ ์๋ฌ๊ฐ ๊ณ์ ํฐ์ก๋๋ฐ ์ง๊ธ์ ์๋ฉ๋๋ค!! ๋ค๋ฅธ ๋ถ๋ค๋ ํน์๋ ์๋๋ฉด Java11๋ก ํด๋ณด์๊ณ ์์กด์ฑ ๋๊ฐ์ด ๋ง์ถ๊ณ ํด๋ณด์ธ์! ์คํ์ด ๊ณ์ ์๋๋ Clean -> Build ํด์ฃผ๊ณ ์๋ก๊ณ ์นจ ํ ์คํํ๋ ๋ฉ๋๋ค. ํ์ฌ DB์ ๊ฐ ์ ์์ ์ผ๋ก ๋ค์ด๊ฐ๋๋ค. ์ ๋ ๋ง์ด ์ง๋ฌธ์ด ๋ฌ๋ฆฌ๋ ๊ฐ์์ธ๋ฐ ์ง๊ธ ๋ฒ์ ์ ๋ง๋ ํ๋ก์ ํธ ํ์ผ ํ๋ ์ฌ๋ ค์ฃผ์๋ฉด ์ฐธ๊ณ ํ๊ธฐ ์ข์ ๊ฒ ๊ฐ์์..!
- 0
- 3
- 743
Q&A
No Persistence Provider for EntityManager ์๋ฌ
๊ถ๊ธํ๊ฑด ์์์์ ์ฌ๊ธฐ์ ์คํํ๋ฉด ํ๋ก๊ทธ๋จ์ด ์ฌ๋ผ๊ฐ๋๋ฐ ์ ๋ ์ฌ๋ผ๊ฐ์ง ์์ต๋๋ค.. ์๋ฌ๋ฉ์ธ์ง ๋ณด๋ฉด Warning๋ง ๋จ๋๋ฐ๋ ์์ฌ๋ผ๊ฐ๋ค์.. Connected to the target VM, address: '127.0.0.1:61520', transport: 'socket'9์ 19, 2023 1:51:39 ์คํ org.hibernate.jpa.internal.util.LogHelper logPersistenceUnitInformationINFO: HHH000204: Processing PersistenceUnitInfo [name: hello]9์ 19, 2023 1:51:39 ์คํ org.hibernate.Version logVersionINFO: HHH000412: Hibernate ORM core version 6.2.7.Final9์ 19, 2023 1:51:39 ์คํ org.hibernate.cfg.Environment INFO: HHH000406: Using bytecode reflection optimizer9์ 19, 2023 1:51:40 ์คํ org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl configureWARN: HHH10001002: Using built-in connection pool (not intended for production use)9์ 19, 2023 1:51:40 ์คํ org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreatorINFO: HHH10001005: Loaded JDBC driver class: org.h2.Driver9์ 19, 2023 1:51:40 ์คํ org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreatorINFO: HHH10001012: Connecting with JDBC URL [jdbc:h2:tcp://localhost/~/test]9์ 19, 2023 1:51:40 ์คํ org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreatorINFO: HHH10001001: Connection properties: {password=****, user=sa}9์ 19, 2023 1:51:40 ์คํ org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl buildCreatorINFO: HHH10001003: Autocommit mode: false9์ 19, 2023 1:51:40 ์คํ org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl$PooledConnections INFO: HHH10001115: Connection pool size: 20 (min=1)9์ 19, 2023 1:51:40 ์คํ org.hibernate.bytecode.internal.BytecodeProviderInitiator buildBytecodeProviderINFO: HHH000021: Bytecode provider name : bytebuddy9์ 19, 2023 1:51:42 ์คํ org.hibernate.engine.transaction.jta.platform.internal.JtaPlatformInitiator initiateServiceINFO: HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]9์ 19, 2023 1:51:45 ์คํ org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl$PoolState stopINFO: HHH10001008: Cleaning up connection pool [jdbc:h2:tcp://localhost/~/test]Disconnected from the target VM, address: '127.0.0.1:61520', transport: 'socket'Process finished with exit code 0
- 0
- 3
- 743
Q&A
No Persistence Provider for EntityManager ์๋ฌ
[Self ๋ต๋ณ] ํด๋น ์๋ฌ๋ ๊ณ ์ณค์ต๋๋ค. implementation 'jakarta.persistence:jakarta.persistence-api:3.1.0'์์กด์ฑ์ ์ด๊ฑธ ์ถ๊ฐํ๊ณ ,(์ฌ์ง)javax -> jakarta๋ก ์์ ํ์ต๋๋ค.
- 0
- 3
- 743