Exclude certain DataSource(s) from HibernateJpaAutoConfiguration
问题 I have a project with 2 DataSources. One is for PostgreSQL and other is for ClickHouse. No problem so far. I intend to use ClickHouse with native SQL via JDBC only. But I would like to use JPA based repositories with PostgreSQL datasource. And if I add spring-boot-starter-data-jpa dependency, HibernateJpaAutoConfiguration kicks in for ALL registered DataSource beans . ClickHouse is not a transactional relational DB and its JDBC implementation is very limited and basic, never intended for use