Class H2DatabaseConfiguration

    • Constructor Detail

      • H2DatabaseConfiguration

        public H2DatabaseConfiguration()
        Create a new instance.
    • Method Detail

      • h2TcpServer

        @Bean(initMethod="start",
              destroyMethod="stop")
        public org.h2.tools.Server h2TcpServer​(Environment env)
                                        throws SQLException
        Creates a server for connecting to the in-memory database.
        Parameters:
        env - The Spring environemnt for getting the configuration properties.
        Returns:
        A TCP server.
        Throws:
        SQLException - If H2 server could not start
      • h2ConsoleServer

        @Bean(initMethod="start",
              destroyMethod="stop")
        public org.h2.tools.Server h2ConsoleServer​(Environment env)
                                            throws SQLException
        Creates a console server for connecting to the in-memory database.
        Parameters:
        env - The Spring environemnt for getting the configuration properties.
        Returns:
        A TCP server.
        Throws:
        SQLException - If H2 server could not start