Description
Eduard Dudar opened DATACOUCH-647 and commented
My application uses auditing but only for dates via @CreatedDate
and @LastModifiedDate
. I don't use xxxBy
annotations.
With Spring Boot 2.2.x and Spring Data Couchbase 3.x, everything starts and works as expected. Even though documentation says that there must be AuditorAware<T>
bean. AuditingHandler
uses Optional
for auditor so this requirement does not seem to be true even in 3.x version.
Now with Spring Boot 2.3 and Spring Data Couchbase 4.x, the said application does not start. First, it complains that AuditorAware
bean not found. When I define one, it still complains that a bean named exactly auditorAwareRef
is not found. I don't see anywhere in the documentation such naming requirement. Second, after defining auditorAwareRef
, it complains that dataTimeProviderRef
is missing. And similar to the auditor, a bean has to be named exactly. This part is not in the doc at all.
I feel like this is rather a regression, both beans should no be required for an application to start: the auditor is Optional
and the datatimeprovider defaults to CurrentDateTimeProvider.INSTANCE
No further details from DATACOUCH-647