Spring -Karton -Anwendung - Es wurde keine geeignete Treiberklasse ermittelt

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Spring -Karton -Anwendung - Es wurde keine geeignete Treiberklasse ermittelt

by Anonymous » 28 Mar 2025, 11:56

Meine Spring-Boot-Version ist 3.4.1
Beim Ausführen von IDE (Intellij) sieht alles in Ordnung aus.org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception with message: Failed to determine a suitable driver class
< /code>
In meiner Eigenschaftendatei: < /p>
spring.datasource.url=jdbc:mariadb://localhost:3306/database
spring.datasource.username=username
spring.datasource.password=password
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
< /code>
In meinem POM: < /p>

org.mariadb.jdbc
mariadb-java-client
runtime

< /code>
Was habe ich vermisst?
thx < /p>

Top