Я столкнулся с этой ошибкой при развертывании моего приложения Spring-Boot на AWS EC2 с базой данных MySql.Я уже загрузил свою базу данных на сервер с общедоступным днс ec2-54-169-121-181.ap-southeast-1.compute.amazonaws.com.Я получаю ошибку:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating
bean with name
'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration':
Unsatisfied dependency expressed through constructor parameter 0; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'dataSource' defined in class path resource
[org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]:
Bean instantiation via factory method
failed; nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method
'dataSource' threw exception; nested exception is
org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCrea
tionException:
Failed to determine a suitable driver class
Вот мой файл application.properties
## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.url = jdbc:mysql://ec2-54-169-121-181.ap-southeast-1.compute.amazonaws.com:3306/notes_app
spring.datasource.username = root
spring.datasource.password = root
## Hibernate Properties
# The SQL dialect makes Hibernate generate better SQL for the chosen database
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5InnoDBDialect
# Hibernate ddl auto (create, create-drop, validate, update)
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
Я пробовал много решений в Интернете и не нашел никакой помощи.