@Configuration(proxyBeanMethods=false) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass(value=org.springframework.web.servlet.config.annotation.WebMvcConfigurer.class) @ConditionalOnMissingBean(value={org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor.class,org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.class}) @ConditionalOnMissingFilterBean(value=org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.class) @ConditionalOnProperty(prefix="spring.jpa", name="open-in-view", havingValue="true", matchIfMissing=true) protected static class JpaBaseConfiguration.JpaWebConfiguration extends Object
Modifier | Constructor and Description |
---|---|
protected |
JpaWebConfiguration(JpaProperties jpaProperties) |
Modifier and Type | Method and Description |
---|---|
OpenEntityManagerInViewInterceptor |
openEntityManagerInViewInterceptor() |
WebMvcConfigurer |
openEntityManagerInViewInterceptorConfigurer(OpenEntityManagerInViewInterceptor interceptor) |
protected JpaWebConfiguration(JpaProperties jpaProperties)
@Bean public OpenEntityManagerInViewInterceptor openEntityManagerInViewInterceptor()
@Bean public WebMvcConfigurer openEntityManagerInViewInterceptorConfigurer(OpenEntityManagerInViewInterceptor interceptor)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.