Package tech.jhipster.config.h2
Class H2ConfigurationHelper
java.lang.Object
tech.jhipster.config.h2.H2ConfigurationHelper
Utility class to configure H2 in development.
We don't want to include H2 when we are packaging for the "prod" profile and won't actually need it, so we have to load / invoke things at runtime through reflection.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
createServer.static Object
createServer
(String port) createServer.static void
Init the H2 console via H2's webserver when no servletContextServletContext
is available.static void
initH2Console
(jakarta.servlet.ServletContext servletContext) initH2Console.
-
Method Details
-
createServer
createServer.
- Returns:
- a
Object
object. - Throws:
SQLException
- if any.
-
createServer
createServer.
- Parameters:
port
- aString
object.- Returns:
- a
Object
object. - Throws:
SQLException
- if any.
-
initH2Console
public static void initH2Console()Init the H2 console via H2's webserver when no servletContextServletContext
is available. -
initH2Console
public static void initH2Console(jakarta.servlet.ServletContext servletContext) initH2Console.
- Parameters:
servletContext
- aServletContext
object.
-