Spring version working with H2 database and mongodb