Package de.trustable.ca3s.core.config
Class DatabaseConfiguration
- java.lang.Object
-
- de.trustable.ca3s.core.config.DatabaseConfiguration
-
@Configuration @EnableJpaRepositories("de.trustable.ca3s.core.repository") @EnableJpaAuditing(auditorAwareRef="springSecurityAuditorAware") @EnableTransactionManagement public class DatabaseConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description DatabaseConfiguration(org.springframework.core.env.Environment env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objecth2TCPServer()Open the TCP port for the H2 database, so it is available remotely.
-
-
-
Method Detail
-
h2TCPServer
@Bean(initMethod="start", destroyMethod="stop") @Profile("dev") public Object h2TCPServer() throws SQLExceptionOpen the TCP port for the H2 database, so it is available remotely.- Returns:
- the H2 database TCP server.
- Throws:
SQLException- if the server failed to start.
-
-