org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'entityManagerFactory' defined in class path resource
[org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]
: Bean instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean]
: Factory method 'entityManagerFactory' threw exception;
nested exception is java.lang.RuntimeException
: Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl, jdbc:mysql:://localhost:3306/db_name
를 잘 읽어보면 Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl 라는 문장을 볼 수 있다.
에러
spring.datasource.url=jdbc:mysql:://localhost:3306/db_name
해결
spring.datasource.url=jdbc:mysql:/localhost:3306/db_name
에러
org.springframework.data.annotation.Id
해결
javax.persistence.Id
implementation group: 'org.javassist', name: 'javassist', version: '3.15.0-GA'
buile.gradle에 위 문장 추가