Spring Boot - How to set the default schema for PostgreSQL?

Since this is quite old and has no proper answer yet, the right property to set is the following:

spring.jpa.properties.hibernate.default_schema=yourschema

You can try setting the default schema for the jdbc user.

1) ALTER USER user_name SET search_path to 'schema'

2) Did you try this property? spring.datasource.schema

http://docs.spring.io/spring-boot/docs/current/reference/html/howto-database-initialization.html