Class PersistenceExceptionTranslationAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration
@AutoConfiguration
@ConditionalOnClass(org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor.class)
public class PersistenceExceptionTranslationAutoConfiguration
extends Object
Auto-configuration
for Spring's persistence exception
translation.- Since:
- 1.2.0
- Author:
- Andy Wilkinson, Stephane Nicoll, Madhura Bhave
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpersistenceExceptionTranslationPostProcessor
(Environment environment)
-
Constructor Details
-
PersistenceExceptionTranslationAutoConfiguration
public PersistenceExceptionTranslationAutoConfiguration()
-
-
Method Details
-
persistenceExceptionTranslationPostProcessor
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.dao.exceptiontranslation", name="enabled", matchIfMissing=true) public static PersistenceExceptionTranslationPostProcessor persistenceExceptionTranslationPostProcessor(Environment environment)
-