Hibernate 5 Multitenancy and H2 : ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper - Schema MYSCHEMA not found
问题 I am using Spring Framework test configuration (legacy app) Very strange behaviour of H2 database with Hibernate 5 multitenancy, I just added configuration to my tests, and the spring application context can't work : @Bean public static DataSource dataSource() { DriverManagerDataSource dataSource = new DriverManagerDataSource(); dataSource.setDriverClassName("org.h2.Driver"); dataSource.setUrl("jdbc:h2:mem:db;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false"); dataSource.setUsername("sa");