@Configuration @ConditionalOnClass(value=org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor.class) public class PersistenceExceptionTranslationAutoConfiguration extends Object
Auto-configuration
for Spring's persistence exception
translation.Constructor and Description |
---|
PersistenceExceptionTranslationAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
static PersistenceExceptionTranslationPostProcessor |
persistenceExceptionTranslationPostProcessor(Environment environment) |
public PersistenceExceptionTranslationAutoConfiguration()
@Bean @ConditionalOnMissingBean(value=org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor.class) @ConditionalOnProperty(prefix="spring.dao.exceptiontranslation", name="enabled", matchIfMissing=true) public static PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor(Environment environment)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.