GeoServer does not come built-in with support for H2; it must be installed through an extension. Proceed to Installing the H2 extension for installation details.
Installing the H2 extension¶
Download the H2 extension from the GeoServer download page.
Make sure to match the version of the extension to the version of the GeoServer instance!
Extract the contents of the archive into the
WEB-INF/libdirectory of the GeoServer installation.
Adding an H2 data store¶
Once the extension is properly installed H2 will be an option in the Vector Data Sources list when creating a new data store.