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