@AutoConfiguration(after=DataSourceAutoConfiguration.class) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass(value=org.h2.server.web.WebServlet.class) @ConditionalOnProperty(prefix="spring.h2.console", name="enabled", havingValue="true") @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,
ObjectProvider<DataSource> dataSource) |
@Bean public ServletRegistrationBean<org.h2.server.web.WebServlet> h2Console(H2ConsoleProperties properties, ObjectProvider<DataSource> dataSource)