Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

application.properties #5

Open
lzyamos opened this issue Feb 19, 2023 · 6 comments
Open

application.properties #5

lzyamos opened this issue Feb 19, 2023 · 6 comments

Comments

@lzyamos
Copy link

lzyamos commented Feb 19, 2023

Hi. I've been following your course for my school project but when I use your .properties code it's greyed out in intellij so it doesn't work for me any advice?

@novychok
Copy link

Hi, Izyamos. Maybe you're using not the Ultimate version of Intellij, but anyway if you're using the Community edition of Intellij and your .properties file code is greyed it will work properly.

@alyafaiz
Copy link

alyafaiz commented Oct 5, 2023

hi. hello. why i cannot connect to database?
the error code is:
Cannot connect to "postgres@localhost". FATAL: database "amigoscode" does not exist

@novychok
Copy link

Tip: read the error carefully, the error says that you don't have a database with the name amigoscode.
So to resolve your error, you need to create a database with the name amigoscode.
Connect to your PostgreSQL CLI "command line interface for PostgreSQL" and run the SQL scriot CREATE DATABASE amigoscode;
It will create for you the database :)

@alyafaiz
Copy link

tq for your kind response. ok done create database amigoscode.
however, my intelliJ still failed to clone and start the application. so frustrating.

Description:

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

Property: driver-class-name
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

amigoscode

please assist me, tq so much

@alyafaiz
Copy link

or is it because i clone the resource using https? not ssh?

@novychok
Copy link

See this first time :)
The error says that your Postgres driver is not loaded correct.
Theres need a few moments to check.
Make sure that you have correct driver in your maven dependencies, for example this link is for PSQL JDBC drivers ->
https://mvnrepository.com/artifact/org.postgresql/postgresql

You can try also clean/install your project, or reload it from disk (google it if you doesn't know how to do that)

And again double check your dependencies in maven, there can be some mismatches in versions, or you just skip one of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants