Allow DAO ExceptionTranslator to proxy classes
Update the auto-configured PersistenceExceptionTranslationPostProcessor to proxy target classes as well as interfaces. Also provide a config property to disable registration all together. Fixes gh-1844
This commit is contained in:
@@ -205,6 +205,9 @@ content into your application; rather pick only the properties that you need.
|
||||
spring.datasource.max-wait=
|
||||
spring.datasource.jmx-enabled=true # Export JMX MBeans (if supported)
|
||||
|
||||
# DATASOURCE ({sc-spring-boot-autoconfigure}/dao/PersistenceExceptionTranslationAutoConfiguration.{sc-ext}[PersistenceExceptionTranslationAutoConfiguration]
|
||||
spring.dao.exceptiontranslation.enabled=true
|
||||
|
||||
# MONGODB ({sc-spring-boot-autoconfigure}/mongo/MongoProperties.{sc-ext}[MongoProperties])
|
||||
spring.data.mongodb.host= # the db host
|
||||
spring.data.mongodb.port=27017 # the connection port (defaults to 27107)
|
||||
|
||||
Reference in New Issue
Block a user