@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 @ConditionalOnProperty(prefix="spring.dao.exceptiontranslation", name="enabled", matchIfMissing=true) public static PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor(Environment environment)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.