@Configuration(proxyBeanMethods=false) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass(value=org.h2.server.web.WebServlet.class) @ConditionalOnProperty(prefix="spring.h2.console", name="enabled", havingValue="true", matchIfMissing=false) @AutoConfigureAfter(value=DataSourceAutoConfiguration.class) @EnableConfigurationProperties(value=H2ConsoleProperties.class) public class H2ConsoleAutoConfiguration extends Object
Auto-configuration
for H2's web console.Constructor and Description |
---|
H2ConsoleAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
ServletRegistrationBean<org.h2.server.web.WebServlet> |
h2Console(H2ConsoleProperties properties,
org.springframework.beans.factory.ObjectProvider<DataSource> dataSource) |
@Bean public ServletRegistrationBean<org.h2.server.web.WebServlet> h2Console(H2ConsoleProperties properties, org.springframework.beans.factory.ObjectProvider<DataSource> dataSource)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.