Verify application.yaml Configuration #19
pwgit-create
announced in
File-Integrity-Scanner
Replies: 1 comment
-
Tools used for handling the databaseWindowspgAdmin 4 Linuxpsql |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Database Configuration
Make sure your database configuration in
application.yamlis correct. Here's an example based on the project status of 2025-07-07 of that file with extra clarity parameter of the driver class name :Check Environment Variables
Ensure that the environment variables
INTEGRITY_HASH_DB_USERandINTEGRITY_HASH_DB_PASSWORDare set correctly.You can print them to check if they're available:
Test the Connection
Before running your application, you might want to test connecting to your PostgreSQL database using a
command-line tool like
psqlor any other database client to ensure that the credentials and connection detailsare correct.
Linux
psql -h localhost -p 26556 -U $INTEGRITY_HASH_DB_USER -d integrity_hashWindows
Save the Powershell-script in a file as:
test_connection_to_integrity_db.ps1Finally : Restart Your Application
After making any changes to your
application.yamlfile, restart your Spring Boot application. If everything is set up correctly, it should nowbe able to configure the data source and connect to your PostgreSQL database.
Beta Was this translation helpful? Give feedback.
All reactions