Spring Boot с полем PostgreSQL для начала - PullRequest
0 голосов
/ 12 июля 2020

Это простое приложение CURD для загрузки Spring. Не удалось запустить.

В pom. xml У меня как: -

        <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-data-jpa</artifactId>
    </dependency>
    <dependency>
        <groupId>org.postgresql</groupId>
        <artifactId>postgresql</artifactId>
        <scope>runtime</scope>
    </dependency>

В приложении pom.

тоже приличнее. свойства: -

spring.datasource.url=jdbc:postgresql://localhost:5432/mydb
spring.datasource.username=myuser
spring.datasource.password=mypass
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.hibernate.ddl-auto=create

При попытке запустить приложение я получаю следующую ошибку: -

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-07-12 15:29:40 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - 

 ***************************
 APPLICATION FAILED TO START
***************************

Description:

Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:

Property: driverclassname
Value: org.postgresql.Driver
Origin: "driverClassName" from property source "source"
Reason: Failed to load driver class org.postgresql.Driver in either of HikariConfig class loader or Thread context classloader

 Action:

 Update your application's configuration

Я не понимаю, что я пропустил? Пожалуйста, дайте мне знать. Заранее спасибо!

...