Spring Data JPA excludes database in certain environment/profile.

In some scenario, we just don’t need the database at all, but Spring Data JPA gets error at start up complaining no DB connection.
In some scenario, we just don’t need the database at all, but Spring Data JPA gets error at start up complaining no DB connection.