Using kotlin and Any instead of Object does work.
@Bean
fun loggingSaves(): ApplicationListener<BeforeSaveEvent<Any>> {
return ApplicationListener { event: BeforeSaveEvent<Any> ->
https://docs.spring.io/spring-data/jdbc/docs/2.4.18/reference/html/#jdbc.events
Should it be possible? Since the documentation mentions Object i would think it would match all using Any (or Object)