I’m working on a Spring Boot application and I’d like to use Supabase database as my database.
I’ve successfully set up Supabase and created a project, but I’m having trouble configuring it in my Spring Boot application, and also trouble with an endpoint of mine.
My current setup:
- Spring Boot version:
3.2.5
What I’ve tried:
Added the necessary PostgreSQL dependencies to my
pom.xml:<dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId></dependency>Configured my
application.propertieswith the details provided by Supabase:
spring.datasource.url=jdbc:postgresql://<supabase-host>:5432/<database-name> spring.datasource.username=<supabase-user> spring.datasource.password=<supabase-password> spring.datasource.driver-class-name=org.postgresql.Driver
I’m not sure if this configuration is sufficient or if there are additional settings required to fully integrate Supabase with Spring Boot.