Skip to content

Connect Spring Boot to SQLEye

Set spring.datasource.url, username and password in application.properties. Spring Boot tries an embedded database if you do not set the URL. Create the database first, see CLI clients.

The PostgreSQL JDBC URL form is jdbc:postgresql://host:port/database.

spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/myapp
spring.datasource.username=postgres
spring.datasource.password=

Connector/J’s single-host form is jdbc:mysql://host:port/database.

spring.datasource.url=jdbc:mysql://127.0.0.1:3306/myapp
spring.datasource.username=root
spring.datasource.password=

Replace the port with your instance’s port.

Sources: Spring Boot SQL databases, PostgreSQL JDBC, Connector/J URL format. To see the queries Hibernate issues, turn on capture.

SQLEye is developed and maintained by CodeROG. This page is also available as Markdown.