@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() |
public PersistenceExceptionTranslationAutoConfiguration()
@Bean @ConditionalOnMissingBean(value=org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor.class) @ConditionalOnProperty(prefix="spring.dao.exceptiontranslation", name="enabled", matchIfMissing=true) public static PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.