Problème de Connexion avec mysql spring boot java
Bonjour,
Je fais une application java avec Spring boot, pour connecter avec le serveur mysql, il me donne toujours cette erreur
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2023-08-08T10:02:13.500-04:00 ERROR 6452 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
Voici mon fichier de configuration (application.properties)
spring.application.name=essai
server.port=9000
spring.datasource.url=jdbc:mysql://localhost:3306/church
spring.datasource.username=root
spring.datasource.password=motdepasse
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
Merci!