I guess application.properties should already be configured by spring.datasource field in order to use CrudRepository