Class H2ConsoleAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.h2.H2ConsoleAutoConfiguration
@AutoConfiguration(after=DataSourceAutoConfiguration.class)
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnClass(org.h2.server.web.JakartaWebServlet.class)
@ConditionalOnProperty(prefix="spring.h2.console",
name="enabled",
havingValue="true")
@EnableConfigurationProperties(H2ConsoleProperties.class)
public class H2ConsoleAutoConfiguration
extends Object
Auto-configuration
for H2's web console.- Since:
- 1.3.0
- Author:
- Andy Wilkinson, Marten Deinum, Stephane Nicoll
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionServletRegistrationBean<org.h2.server.web.JakartaWebServlet>
h2Console
(H2ConsoleProperties properties, ObjectProvider<DataSource> dataSource)
-
Constructor Details
-
H2ConsoleAutoConfiguration
public H2ConsoleAutoConfiguration()
-
-
Method Details
-
h2Console
@Bean public ServletRegistrationBean<org.h2.server.web.JakartaWebServlet> h2Console(H2ConsoleProperties properties, ObjectProvider<DataSource> dataSource)
-