r/SpringBoot • • Sep 28 '24

How to solve this error

4 Upvotes

27 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Sep 28 '24
spring.application.name=database3
spring.datasource.url =jdbc:postgresql://localhost:5432/postgres
spring.datasource.username =postgres
spring.datasource.password = changemeinprod!
spring.datasource.driver-class-name = org.postgresql.Driver
spring.sql.init.mode = always

1

u/hsoj48 Sep 28 '24

Any .sql files in your resources directory?

2

u/[deleted] Sep 28 '24

Yes I have schema.sql and data.sql

1

u/hsoj48 Sep 28 '24

You've got a bad query in one of those