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