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.
How do I configure PostgreSQL?
Section titled “How do I configure PostgreSQL?”The PostgreSQL JDBC URL form is jdbc:postgresql://host:port/database.
spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/myappspring.datasource.username=postgresspring.datasource.password=How do I configure MySQL?
Section titled “How do I configure MySQL?”Connector/J’s single-host form is jdbc:mysql://host:port/database.
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/myappspring.datasource.username=rootspring.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.