본문 바로가기
반응형

Delvelopment/JPA3

[SpringBoot Gradle] Cannot load driver class: com.mysql.jdbc.Driver Cannot load driver class: com.mysql.jdbc.Driver Mysql 8 버전부터 com.mysql.jdbc.Driver 를 사용하지 않고 com.mysql.cj.jdbc.Driver를 사용한다. boot에서 자동 변환해주는걸 볼 수 있다. Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. applcation.yaml sprin.. 2020. 4. 26.
Spring Boot + JPA + Gradle 에러 해결 [Error creating bean with name 'entityManagerFactory' defined in class path resource] 나는 Spring Boot 프로젝트로 JPA 환경에 Gradle을 가지고 프로젝트 셋팅을 하고 있었다. Mysql 로 연결을 하던중... entityManagerFactor 빈을 생성할 수 없다네..? 뭐지?? 했는데 javaassist 가 필요했다. 해결법. build.gradle 에 아래 추가. implementation group: 'org.javassist', name: 'javassist', version: '3.15.0-GA' 에러 로그 .. entityManagerFactory 를 만들 수 없다는 에러.... Error starting ApplicationContext. To display the conditions report re-run your application with 'debug.. 2020. 2. 17.
JPA 프로젝트 셋팅. (JPA, Spring-boot, H2 Database), persistence.xml 설정 약 16개월전 JPA (하이버네이트)로 구축되어있는 프로젝트에 약 3주간 참여했던적이 있었다. 그때는 모든게 새로웠고 이미 구축된 프로젝트였기 때문에 기존 소스를 활용해 개발하기 급급했다. 지금 다시 JPA를 본격적으로 프로젝트 셋팅부터 시작하려한다. 책은 김영한님이 작성하신 자바 ORM 표준 JPA 프로그래밍 으로 공부를 진행한다. (나는 인텔리제이로 사용하니 다른 분들과 조금 다를 수 있다.) 프로젝트 셋팅 시작. JPA 와 H2 데이터 베이스, 스프링 부트를 활용해 pom.xml 를 셋팅한다. pom.xml 4.0.0 org.example jpa_ch02 1.0-SNAPSHOT org.springframework.boot spring-boot-starter-parent 2.1.1.RELEASE 1... 2019. 12. 15.
반응형